Skip to content

Commit

Permalink
Add test cases for NASA subjects configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Samk13 committed Feb 7, 2024
1 parent 2cc9f79 commit ee75287
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/test_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from pathlib import Path

from invenio_subjects_nasa import config


def test_nasa_subjects_csv_input_path():
"""Test the default value of the NASA subjects CSV input path."""
assert config.nasa_subjects_csv_input_path == (
Path.cwd()
/ "invenio_subjects_nasa"
/ "downloads"
/ "thesaurus-CSV-2024-02-05.csv"
)


def test_nasa_subjects_yaml_output_path():
"""Test the default value of the NASA subjects YAML output path."""
assert config.nasa_subjects_yaml_output_path == (
Path.cwd() / "invenio_subjects_nasa" / "vocabularies" / "nasa_thesaurus.yaml"
)

0 comments on commit ee75287

Please sign in to comment.