summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2018-07-22 16:14:16 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2018-07-25 23:10:10 -0700
commit6f7eaecfa0ee0a6bbe5652c9c1d5cc6c367b799a (patch)
tree8d6ab953e6d7662a29e9f7c3c797b3c8c1910af1 /lib
parent773cfe088fab98f7ca4451bb5cfcacbab48529a5 (diff)
downloadspack-6f7eaecfa0ee0a6bbe5652c9c1d5cc6c367b799a.tar.gz
spack-6f7eaecfa0ee0a6bbe5652c9c1d5cc6c367b799a.tar.bz2
spack-6f7eaecfa0ee0a6bbe5652c9c1d5cc6c367b799a.tar.xz
spack-6f7eaecfa0ee0a6bbe5652c9c1d5cc6c367b799a.zip
tests: correct name of `check_db` to `check_repo`
- this test is checking the package *repository*, not the database.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/package_sanity.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/spack/spack/test/package_sanity.py b/lib/spack/spack/test/package_sanity.py
index 3f56b7c6ba..0c26fd7d95 100644
--- a/lib/spack/spack/test/package_sanity.py
+++ b/lib/spack/spack/test/package_sanity.py
@@ -27,13 +27,12 @@ import re
import pytest
+import spack.paths
import spack.repo
-from spack.paths import mock_packages_path
-from spack.repo import RepoPath
-def check_db():
- """Get all packages in a DB to make sure they work."""
+def check_repo():
+ """Get all packages in the builtin repo to make sure they work."""
for name in spack.repo.all_package_names():
spack.repo.get(name)
@@ -41,14 +40,14 @@ def check_db():
@pytest.mark.maybeslow
def test_get_all_packages():
"""Get all packages once and make sure that works."""
- check_db()
+ check_repo()
def test_get_all_mock_packages():
"""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):
- check_db()
+ check_repo()
def test_all_versions_are_lowercase():