Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use different characters to denote reports to avoid weird doc string … #79

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions data/test_output_file.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Lines that are part of the startup header:
- Version: 2729a
- Command line: ['.venv/bin/python3', '-m', 'app.tracking_service', '--market', 'US', '--version', '2729a']

>>>>>>>>>> a report has been reported <<<<<<<<<<
------ a report has been reported ------

Number of error lines: 22

Expand Down Expand Up @@ -132,4 +132,4 @@ Lines that are part of the startup header:
- Version: 2729a
- Command line: ['.venv/bin/python3', '-m', 'app.tracking_service', '--market', 'US', '--version', '2729a']

>>>>>>>>>> a report has been reported <<<<<<<<<<
------ a report has been reported ------
2 changes: 1 addition & 1 deletion src/alogamous/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ def analyze_log_stream(analyzers, in_stream, out_stream):
for analyzer in analyzers:
analyzer.report(out_stream)
out_stream.write("\n\n")
out_stream.write(">>>>>>>>>> a report has been reported <<<<<<<<<<\n\n")
out_stream.write("------ a report has been reported ------\n\n")
2 changes: 1 addition & 1 deletion tests/analyze_log_stream_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ def test_analyze_log_stream():
out_stream = io.StringIO()

analyzer.analyze_log_stream([TestAnalyzer1(), TestAnalyzer2()], in_stream, out_stream)
assert out_stream.getvalue() == "\n\n\n\n>>>>>>>>>> a report has been reported <<<<<<<<<<\n\n"
assert out_stream.getvalue() == "\n\n\n\n------ a report has been reported ------\n\n"
Loading