File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 51
51
run : poetry run mypy --show-error-codes openapi_python_client
52
52
53
53
- name : Run pytest
54
- run : poetry run pytest --cov=openapi_python_client --cov-report=term-missing tests end_to_end_tests
54
+ run : poetry run pytest --cov=openapi_python_client --cov-report=term-missing tests end_to_end_tests/test_end_to_end.py
55
55
56
56
- name : Generate coverage report
57
57
shell : bash
Original file line number Diff line number Diff line change @@ -39,13 +39,15 @@ def _compare_directories(
39
39
expected_path_mismatches = []
40
40
for file_name in mismatches :
41
41
mismatch_file_path = test_subject .joinpath (file_name )
42
- expected_content = expected_differences .get (mismatch_file_path )
43
- if expected_content is None :
44
- continue
42
+
43
+ if mismatch_file_path in expected_differences :
44
+ expected_content = expected_differences [mismatch_file_path ]
45
+ expected_path_mismatches .append (mismatch_file_path )
46
+ else :
47
+ expected_content = (record / file_name ).read_text ()
45
48
46
49
generated_content = (test_subject / file_name ).read_text ()
47
50
assert generated_content == expected_content , f"Unexpected output in { mismatch_file_path } "
48
- expected_path_mismatches .append (mismatch_file_path )
49
51
50
52
for path_mismatch in expected_path_mismatches :
51
53
matched_file_name = path_mismatch .name
You can’t perform that action at this time.
0 commit comments