Skip to content

Commit

Permalink
use capsys
Browse files Browse the repository at this point in the history
  • Loading branch information
purva-thakre committed Jul 2, 2024
1 parent 2bad6a7 commit 8e9da38
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mitiq/tests/test_about.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
import mitiq


def test_stdout():
"""Tests function prints a str."""
def test_result_and_stdout(capsys):
mitiq.about()
captured = capsys.readouterr()
assert captured.out.startswith(
"\nMitiq: A Python toolkit for implementing"
)

0 comments on commit 8e9da38

Please sign in to comment.