Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Raise error if not updating goldens
  • Loading branch information
kevinhu committed Jul 13, 2021
commit 1c7b621cac78562897504a3b71fbc00919474d29
5 changes: 4 additions & 1 deletion metadata-ingestion/tests/test_helpers/mce_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,7 @@ def check_golden_file(
# only update golden files if the diffs are not empty
if pytestconfig.getoption("--update-golden-files"):
shutil.copyfile(str(output_path), str(golden_path))
raise e

# raise the error if we're just running the test
else:
raise e