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