sckott / habanero

client for Crossref search API
https://habanero.readthedocs.io
MIT License
205 stars 30 forks source link

Tests fail: TypeError: Test file has to be YAML list, got <class 'dict'>. #197

Open yurivict opened 1 day ago

yurivict commented 1 day ago
_______________________________________________________ ERROR collecting test/cassettes/test-works/test_works_with_select_param.yaml ________________________________________________________
/usr/local/lib/python3.11/site-packages/pytest_mypy_plugins/collect.py:117: in collect
    validate_schema(parsed_file, is_closed=self.config.option.mypy_closed_schema)
/usr/local/lib/python3.11/site-packages/pytest_mypy_plugins/collect.py:45: in validate_schema
    raise TypeError(f"Test file has to be YAML list, got {type(data)!r}.")
E   TypeError: Test file has to be YAML list, got <class 'dict'>.
_______________________________________________ ERROR collecting test/cassettes/test-workscontainer/test_workscontainer_failure_behavior.yaml _______________________________________________
/usr/local/lib/python3.11/site-packages/pytest_mypy_plugins/collect.py:117: in collect
    validate_schema(parsed_file, is_closed=self.config.option.mypy_closed_schema)
/usr/local/lib/python3.11/site-packages/pytest_mypy_plugins/collect.py:45: in validate_schema
    raise TypeError(f"Test file has to be YAML list, got {type(data)!r}.")
E   TypeError: Test file has to be YAML list, got <class 'dict'>.
_________________________________________________ ERROR collecting test/cassettes/test-workscontainer/test_workscontainer_with_cursor.yaml __________________________________________________
/usr/local/lib/python3.11/site-packages/pytest_mypy_plugins/collect.py:117: in collect
    validate_schema(parsed_file, is_closed=self.config.option.mypy_closed_schema)
/usr/local/lib/python3.11/site-packages/pytest_mypy_plugins/collect.py:45: in validate_schema
    raise TypeError(f"Test file has to be YAML list, got {type(data)!r}.")
E   TypeError: Test file has to be YAML list, got <class 'dict'>.
__________________________________________________ ERROR collecting test/cassettes/test-workscontainer/test_workscontainer_with_many.yaml ___________________________________________________
/usr/local/lib/python3.11/site-packages/pytest_mypy_plugins/collect.py:117: in collect
    validate_schema(parsed_file, is_closed=self.config.option.mypy_closed_schema)
/usr/local/lib/python3.11/site-packages/pytest_mypy_plugins/collect.py:45: in validate_schema
    raise TypeError(f"Test file has to be YAML list, got {type(data)!r}.")
E   TypeError: Test file has to be YAML list, got <class 'dict'>.

Version: 1.2.6 Python-3.11 FreeBSD 14.1

sckott commented 1 day ago

Thanks for reporting. I'll have a look