-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test cases for NASA subjects configuration
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
) |