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