File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 9
9
install :
10
10
- pip install python-coveralls virtualenv
11
11
# # command to run tests
12
- script : python setup.py test
13
- after_success :
12
+ script :
14
13
- pip install -r requirements-testing.txt -e .
15
14
- py.test --cov=pytest_fixture_tools --cov-report=term-missing tests
16
15
- coveralls
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ def arg2(request):
29
29
assert result .stdout .lines .count ('arg1' ) == 0
30
30
31
31
32
- @pytest .mark .skip (reason = "py.io.TerminalWriter() isn't captured by testdir anymore" )
33
32
def test_there_are_fixture_duplicates (testdir ):
34
33
"""Check that --show-fixture-duplicates will give us list of duplicates."""
35
34
sub1 = testdir .mkpydir ("sub1" )
@@ -51,7 +50,7 @@ def arg1(request):
51
50
sub1 .join ("test_in_sub1.py" ).write ("def test_1(arg1): pass" )
52
51
sub2 .join ("test_in_sub2.py" ).write ("def test_2(arg1): pass" )
53
52
54
- result = testdir .runpytest ('--show-fixture-duplicates' )
53
+ result = testdir .runpytest_subprocess ('--show-fixture-duplicates' , '-s ' )
55
54
56
- assert result .stdout .lines . count ('sub1/conftest.py:5' ) == 1
57
- assert result .stdout .lines . count ('sub1/sub2/conftest.py:5' ) == 1
55
+ result .stdout .fnmatch_lines ('sub1/conftest.py:5' )
56
+ result .stdout .fnmatch_lines ('sub1/sub2/conftest.py:5' )
You can’t perform that action at this time.
0 commit comments