Skip to content

Commit f7e207e

Browse files
committed
fix filename assert to expect filename and not full path
1 parent 2ea1851 commit f7e207e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/analyze/test_analyze_json_python-example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def test_analyze_command_with_json_flag():
2828
assert "function_count" in output
2929

3030
# Verify the values match expected results
31-
assert output["file_name"] == SAMPLE_FILE_PATH
31+
assert output["file_name"] == os.path.basename(SAMPLE_FILE_PATH)
3232
assert output["line_count"] == 161
3333
assert output["comment_line_count"] == 25
3434
assert output["function_count"] == 17

0 commit comments

Comments
 (0)