Example #1
0
def test_get_files(tmpdir):
    pjson = tmpdir.join('package.json')
    pjson.write('''{
    "name": "test",
    "dependencies": {"mocha": "*"}
    }''')
    get_files(npm_prefix_path=str(tmpdir))
Example #2
0
def test_get_files(npm_dir):
    storage = FileSystemStorage(location=str(npm_dir))
    files = get_files(storage, match_patterns='*')
    assert any([True for _ in files])
Example #3
0
def test_get_files(npm_dir):
    storage = FileSystemStorage(location=str(npm_dir))
    files = get_files(storage, match_patterns='*')
    assert any([True for _ in files])
Example #4
0
def test_get_files(npm_dir):
    get_files(npm_prefix_path=str(npm_dir))