Verified Commit c00a8cb2 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

localdb fixture did not return all packages

The _generate_localdb fixture only created the required entries for one
package not all provided packages.
parent 3b37d18e
......@@ -91,7 +91,7 @@ def generate_localdb(tmpdir_factory):
dbloc = f"{dbroot}/local"
os.mkdir(dbloc)
for pkg in pkgs[:1]:
for pkg in pkgs:
path = f"{dbloc}/{pkg['name']}-{pkg['version']}"
os.makedirs(path)
......
......@@ -32,6 +32,12 @@ def test_localdb(core_data, localdb):
pkgpath = f"{localdb}/local/{pkg['name']}-{pkg['version']}"
assert os.path.exists(localdb)
assert os.path.exists(pkgpath)
assert os.path.exists(f"{pkgpath}/desc")
pkg = core_data[-1]
pkgpath = f"{localdb}/local/{pkg['name']}-{pkg['version']}"
assert os.path.exists(f"{pkgpath}/files")
assert os.path.exists(f"{pkgpath}/desc")
def test_localdb_tmpdir(core_data, localdb_tmpdir):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment