Closed physikerwelt closed 1 month ago
this commit should fix the issue 70332a1
it just needed to adjust the paths of the file the unittest should work now with no problems
============================= test session starts ============================= collecting ... collected 1 item
test_metadata_article_OpenAire.py::PlainXmlTest::test_similarity PASSED [100%]
============================== 1 passed in 0.18s ==============================
Process finished with exit code 0
with this commit the unittest should also work without any problems
14e3d77
i created a branch called fixing-unittest and i will delete the branch now
============================= test session starts ============================= collecting ... collected 1 item
test_metadata_software_Codemeta.py::PlainXmlTest::test_similarity PASSED [100%]
============================== 1 passed in 0.09s ==============================
Process finished with exit code 0
https://github.com/MaRDI4NFDI/python-zbMathRest2Oai/actions shows failing tests
when i run each test by its own they all work properly on my local machine . i will check it and work on it to fix the problem
Maybe some files are missing in the repo? Can you double check the following test
def test_api_version_matches(self):
url = "https://api.zbmath.org/openapi.json"
expected_version = "1.5.4"
actual_version = get_api_version(url)
> self.assertEqual(actual_version, expected_version,
f"Expected API version {expected_version}, but got {actual_version}")
E AssertionError: '1.5.8' != '1.5.4'
E - 1.5.8
E ? ^
E + 1.5.4
E ? ^
E : Expected API version 1.5.4, but got 1.5.8
yes the api version is old in the unittest i updated it from 1.5.4 to 1.5.8 this is the commit 5c75ab2 i can make a pull request when you agree with it .
and i will check the files in the repo and try to figure out why the tests are failing.
Read the test output; it shows which files are missing.
test/data/software/software_with_swhid.xml is missing
Describe the issue