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