databricks-cli/libs/testdiff
Denis Bilenko b3d98fe666
acc: Print replacements on error and rm duplicates (#2230)
## Changes
- File comparison files in acceptance test, print the contents of all
applied replacements. Do it once per test.
- Remove duplicate entries in replacement list.

## Tests
Manually, change out files of existing test, you'll get this printed
once, after first assertion:

```
        acceptance_test.go:307: Available replacements:
            REPL /Users/denis\.bilenko/work/cli/acceptance/build/databricks => $$CLI
            REPL /private/var/folders/5y/9kkdnjw91p11vsqwk0cvmk200000gp/T/TestAccept598522733/001 => $$TMPHOME
            ...
```
2025-01-27 07:45:09 +00:00
..
context.go Use regular expressions for testdiff replacements (#2151) 2025-01-15 12:15:23 +01:00
context_test.go Use regular expressions for testdiff replacements (#2151) 2025-01-15 12:15:23 +01:00
golden.go Use regular expressions for testdiff replacements (#2151) 2025-01-15 12:15:23 +01:00
replacement.go acc: Print replacements on error and rm duplicates (#2230) 2025-01-27 07:45:09 +00:00
replacement_test.go Use regular expressions for testdiff replacements (#2151) 2025-01-15 12:15:23 +01:00
testdiff.go Fix incorrect TestingT.Errorf usage and enable linting for this (#2182) 2025-01-20 08:07:42 +00:00
testdiff_test.go Add tests for default-python template on different Python versions (#2025) 2024-12-20 14:40:54 +00:00