Skip to content

Commit

Permalink
Make codecov happy
Browse files Browse the repository at this point in the history
  • Loading branch information
teutoburg committed Aug 7, 2024
1 parent 93b1886 commit 6aa9243
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scopesim/tests/tests_server/test_database.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import csv
import pytest
from pathlib import Path
from tempfile import TemporaryDirectory
Expand All @@ -8,7 +9,6 @@
from scopesim.server import database as db
from scopesim.server import example_data_utils as dbex
from scopesim.server import github_utils as dbgh
from scopesim import rc


@pytest.fixture(scope="class")
Expand Down Expand Up @@ -214,3 +214,12 @@ def test_old_download_package_signature():
version_dict = yaml.full_load(file)

assert version_dict["release"] == "stable"


def test_registry_files():
registry = (Path(__file__).parent.parent.parent /
"server/example_data_registry.txt")
filelist = dbex.list_example_data(return_files=True)
regfiles = dict(csv.reader(
registry.open(encoding="utf-8"), delimiter=" ")).keys()
assert regfiles == set(filelist)

0 comments on commit 6aa9243

Please sign in to comment.