forked from unitaryfund/mitiq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore _about.py in pytest coverage (unitaryfund#2379)
* ignore about.py * correct typo in mitiq/pec/representations/optimal.py * test about func * remove -rP line from makefile * use capsys * add back removed blankline
- Loading branch information
1 parent
6250c94
commit e61c058
Showing
4 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
[run] | ||
omit = | ||
*/tests/* | ||
mitiq/_about.py | ||
|
||
|
||
[report] | ||
# Regexes for lines to exclude from consideration | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright (C) Unitary Fund | ||
# | ||
# This source code is licensed under the GPL license (v3) found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
"""Tests for mitiq.about().""" | ||
|
||
import mitiq | ||
|
||
|
||
def test_result_and_stdout(capsys): | ||
mitiq.about() | ||
captured = capsys.readouterr() | ||
assert captured.out.startswith( | ||
"\nMitiq: A Python toolkit for implementing" | ||
) |