def test_discover_error(module_path, filename): """Attempt exception raised from file with errors""" with pytest.raises(SyntaxError): discover(module_path, filename)
def test_discover_success(module_path, filename, loaded_path): """Simple discovering""" assert discover(module_path, filename) == loaded_path
def test_discover_missing(module_path, filename): """Try discovering on non-existing filename""" assert discover(module_path, filename) == None