コード例 #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