tests: correct name of check_db to check_repo

- this test is checking the package *repository*, not the database.
This commit is contained in:
Todd Gamblin 2018-07-22 16:14:16 -07:00
parent 773cfe088f
commit 6f7eaecfa0

View file

@ -27,13 +27,12 @@
import pytest import pytest
import spack.paths
import spack.repo import spack.repo
from spack.paths import mock_packages_path
from spack.repo import RepoPath
def check_db(): def check_repo():
"""Get all packages in a DB to make sure they work.""" """Get all packages in the builtin repo to make sure they work."""
for name in spack.repo.all_package_names(): for name in spack.repo.all_package_names():
spack.repo.get(name) spack.repo.get(name)
@ -41,14 +40,14 @@ def check_db():
@pytest.mark.maybeslow @pytest.mark.maybeslow
def test_get_all_packages(): def test_get_all_packages():
"""Get all packages once and make sure that works.""" """Get all packages once and make sure that works."""
check_db() check_repo()
def test_get_all_mock_packages(): def test_get_all_mock_packages():
"""Get the mock packages once each too.""" """Get the mock packages once each too."""
db = RepoPath(mock_packages_path) db = spack.repo.RepoPath(spack.paths.mock_packages_path)
with spack.repo.swap(db): with spack.repo.swap(db):
check_db() check_repo()
def test_all_versions_are_lowercase(): def test_all_versions_are_lowercase():