File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ def test_success():
11
11
assert 1
12
12
'''
13
13
)
14
+ testdir .monkeypatch .setenv ('GITHUB_ACTIONS' , '1' )
15
+ testdir ._method = 'subprocess'
14
16
result = testdir .runpytest ()
15
17
result .stdout .no_fnmatch_line (
16
18
'::error file=test_annotation_succeed_no_output.py*' ,
@@ -26,6 +28,8 @@ def test_fail():
26
28
assert 0
27
29
'''
28
30
)
31
+ testdir .monkeypatch .setenv ('GITHUB_ACTIONS' , '1' )
32
+ testdir ._method = 'subprocess'
29
33
result = testdir .runpytest ()
30
34
result .stdout .fnmatch_lines ([
31
35
'::error file=test_annotation_fail.py,line=4::def test_fail():*' ,
@@ -42,6 +46,8 @@ def test_fail():
42
46
assert 1
43
47
'''
44
48
)
49
+ testdir .monkeypatch .setenv ('GITHUB_ACTIONS' , '1' )
50
+ testdir ._method = 'subprocess'
45
51
result = testdir .runpytest ()
46
52
result .stdout .fnmatch_lines ([
47
53
'::error file=test_annotation_exception.py,line=4::def test_fail():*' ,
You can’t perform that action at this time.
0 commit comments