Skip to content

Commit

Permalink
try capsys wo deref
Browse files Browse the repository at this point in the history
  • Loading branch information
evelynmitchell committed Dec 30, 2023
1 parent c891cbd commit 0458ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils/test_print_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_print_main_without_dist(message, capsys):
"""Test print_main without distribution"""
print_main(message)
captured = capsys.readouterr()
assert captured.out == message + "\n"
assert captured.out == "This is the test message!" + "\n"

Check notice

Code scanning / Bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Note test

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.

Check warning

Code scanning / Bandit (reported by Codacy)

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Warning test

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.


# Utilizing Mocks and Parameterized Testing
Expand Down

0 comments on commit 0458ae6

Please sign in to comment.