Skip to content

Commit dd8abd6

Browse files
committed
add test for no report
1 parent c9a1574 commit dd8abd6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

plugin_test.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
pytest_plugins = 'pytester'
22
import pytest
33

4+
def test_annotation_succeed_no_output(testdir):
5+
testdir.makepyfile(
6+
'''
7+
import pytest
8+
pytest_plugins = 'pytest_github_actions_annotate_failures'
9+
10+
def test_success():
11+
assert 1
12+
'''
13+
)
14+
result = testdir.runpytest()
15+
result.stdout.no_fnmatch_line(
16+
'::error file=test_annotation_succeed_no_output.py*',
17+
)
18+
419
def test_annotation_fail(testdir):
520
testdir.makepyfile(
621
'''

0 commit comments

Comments
 (0)