We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce3f12b commit b2f3891Copy full SHA for b2f3891
end_to_end_tests/test_end_to_end.py
@@ -17,6 +17,15 @@ def _compare_directories(
17
] = None, # key: path relative to generated directory, value: expected generated content
18
depth=0,
19
):
20
+ """
21
+ Compare two directories and assert that only expected_differences are different
22
+
23
+ Args:
24
+ record: Path to the expected output
25
+ test_subject: Path to the generated code being checked
26
+ expected_differences: key: path relative to generated directory, value: expected generated content
27
+ depth: Used to track recursion
28
29
first_printable = record.relative_to(Path.cwd())
30
second_printable = test_subject.relative_to(Path.cwd())
31
dc = dircmp(record, test_subject)
0 commit comments