We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4ed2b3 commit 4971e95Copy full SHA for 4971e95
eogrow/utils/testing.py
@@ -368,11 +368,11 @@ def compare_content(
368
raise ValueError("The given path is None. The pipeline likely has no `output_folder_key` parameter.")
369
config = StatCalcConfig() if config is None else config
370
stats = calculate_statistics(folder_path, config=config)
371
+ stats_difference = compare_with_saved(stats, stats_path)
372
373
if save_new_stats:
374
save_statistics(stats, stats_path)
375
- stats_difference = compare_with_saved(stats, stats_path)
376
if stats_difference:
377
stats_difference_repr = stats_difference.to_json(indent=2, sort_keys=True)
378
raise AssertionError(f"Expected and obtained stats differ:\n{stats_difference_repr}")
0 commit comments