Skip to content

Commit b2f3891

Browse files
p1-radbanty
andauthored
Update end_to_end_tests/test_end_to_end.py / doctring imprv
Co-authored-by: Dylan Anthony <[email protected]>
1 parent ce3f12b commit b2f3891

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: end_to_end_tests/test_end_to_end.py

+9
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ def _compare_directories(
1717
] = None, # key: path relative to generated directory, value: expected generated content
1818
depth=0,
1919
):
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+
"""
2029
first_printable = record.relative_to(Path.cwd())
2130
second_printable = test_subject.relative_to(Path.cwd())
2231
dc = dircmp(record, test_subject)

0 commit comments

Comments
 (0)