Skip to content

Commit

Permalink
touch up test_cmdline_python_namespace_package() test code
Browse files Browse the repository at this point in the history
  • Loading branch information
jurko-gospodnetic committed Dec 9, 2017
1 parent 7feab73 commit 41a6ec6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/acceptance_test.py
Expand Up @@ -624,10 +624,9 @@ def join_pythonpath(*dirs):
for p in search_path:
monkeypatch.syspath_prepend(p)

os.chdir('world')
# mixed module and filenames:
os.chdir('world')
result = testdir.runpytest("--pyargs", "-v", "ns_pkg.hello", "ns_pkg/world")
testdir.chdir()
assert result.ret == 0
result.stdout.fnmatch_lines([
"*test_hello.py::test_hello*PASSED*",
Expand All @@ -638,6 +637,7 @@ def join_pythonpath(*dirs):
])

# specify tests within a module
testdir.chdir()
result = testdir.runpytest("--pyargs", "-v", "ns_pkg.world.test_world::test_other")
assert result.ret == 0
result.stdout.fnmatch_lines([
Expand Down

0 comments on commit 41a6ec6

Please sign in to comment.