Skip to content

Commit

Permalink
harden test_cmdline_python_namespace_package
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Feb 24, 2020
1 parent 95561e4 commit 23127a2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion testing/acceptance_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@ def test_cmdline_python_namespace_package(self, testdir, monkeypatch):
assert result.ret == 0
result.stdout.fnmatch_lines(
[
"rootdir: {}/world".format(testdir.tmpdir),
"../hello/ns_pkg/hello/test_hello.py::test_hello PASSED *",
"../hello/ns_pkg/hello/test_hello.py::test_other PASSED *",
"ns_pkg/world/test_world.py::test_world*PASSED*",
Expand All @@ -752,7 +753,12 @@ def test_cmdline_python_namespace_package(self, testdir, monkeypatch):
)
assert result.ret == 0
result.stdout.fnmatch_lines(
["*test_world.py::test_other*PASSED*", "*1 passed*"]
[
"rootdir: {}".format(testdir.tmpdir),
"",
"world/ns_pkg/world/test_world.py::test_other PASSED *",
"=* 1 passed in *=",
]
)

def test_invoke_test_and_doctestmodules(self, testdir):
Expand Down

0 comments on commit 23127a2

Please sign in to comment.