Commits

David Burns  committed 96f37c5

updating tests for new option

  • Participants
  • Parent commits 98dc94d
  • Branches marks

Comments (0)

Files changed (1)

File testing/test_collection.py

             def test_baz():
                 pass
         """)
-        reprec = testdir.inline_run("-s", "-f", "foo", p)
+        reprec = testdir.inline_run("-s", "-m", "foo", p)
         passed, skipped, failed = reprec.listoutcomes()
         assert len(passed) == 2
         acceptable = ['test_baz', 'test_bar']
             def test_baz():
                 pass
         """)
-        reprec = testdir.inline_run("-s", "-f", "bar", p)
+        reprec = testdir.inline_run("-s", "-m", "bar", p)
         passed, skipped, failed = reprec.listoutcomes()
         assert len(passed) == 2
         acceptable = ['test_baz', 'test_foo']
             def test_baz():
                 pass
         """)
-        reprec = testdir.inline_run("-s", '-f', "foo bar", p)
+        reprec = testdir.inline_run("-s", '-m', "foo bar", p)
         passed, skipped, failed = reprec.listoutcomes()
         assert len(passed) == 1
         assert passed[0].nodeid.split('::')[1] == 'test_baz'
             def test_baz():
                 pass
         """)
-        reprec = testdir.inline_run("-s", '-f', "foo", "-f", "bar", p)
+        reprec = testdir.inline_run("-s", '-m', "foo", "-m", "bar", p)
         passed, skipped, failed = reprec.listoutcomes()
         assert len(passed) == 3
         acceptable = ['test_baz', 'test_foo', 'test_bar']
             def test_baz():
                 pass
         """)
-        reprec = testdir.inline_run("-s", '-f', "foo -bar", p)
+        reprec = testdir.inline_run("-s", '-m', "foo -bar", p)
         passed, skipped, failed = reprec.listoutcomes()
         assert len(passed) == 1
         assert passed[0].nodeid.split('::')[1] == 'test_bar'
             def test_baz():
                 pass
         """)
-        reprec = testdir.inline_run("-s", '-f', "foo", "-f", "-bar", p)
+        reprec = testdir.inline_run("-s", '-m', "foo", "-m", "-bar", p)
         passed, skipped, failed = reprec.listoutcomes()
         assert len(passed) == 1
         assert passed[0].nodeid.split('::')[1] == 'test_bar'