Fix remaining tests

This commit is contained in:
Dave Halter
2020-01-22 00:36:30 +01:00
parent 6df755e8b6
commit 9d7858eb3a
3 changed files with 12 additions and 5 deletions

View File

@@ -307,8 +307,13 @@ def test_compiled_import_none(monkeypatch, Script):
@pytest.mark.parametrize(
('path', 'is_package', 'goal'), [
(os.path.join(THIS_DIR, 'test_docstring.py'), False, ('ok', 'lala', 'test_imports')),
(os.path.join(THIS_DIR, '__init__.py'), True, ('ok', 'lala', 'x', 'test_imports')),
# Both of these tests used to return relative paths to the module
# context that was initially given, but now we just work with the file
# system.
(os.path.join(THIS_DIR, 'test_docstring.py'), False,
('test', 'test_inference', 'test_imports')),
(os.path.join(THIS_DIR, '__init__.py'), True,
('test', 'test_inference', 'test_imports')),
]
)
def test_get_modules_containing_name(inference_state, path, goal, is_package):