예제 #1
0
 def test_skip_at_module_scope(self, testdir):
     col = testdir.getmodulecol("""
         import pytest
         pytest.skip("hello")
         def test_func():
             pass
     """)
     rep = main.collect_one_node(col)
     assert not rep.failed
     assert not rep.passed
     assert rep.skipped
예제 #2
0
 def test_skip_at_module_scope(self, testdir):
     col = testdir.getmodulecol("""
         import pytest
         pytest.skip("hello")
         def test_func():
             pass
     """)
     rep = main.collect_one_node(col)
     assert not rep.failed
     assert not rep.passed
     assert rep.skipped