executablebooks / markdown-it-py

Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed. Now in Python!
https://markdown-it-py.readthedocs.io
MIT License
662 stars 68 forks source link

Testing fails with pytest-mypy-plugins installed #288

Closed mtelka closed 1 year ago

mtelka commented 1 year ago

Describe the bug

context When tests for markdown-it-py are run with pytest-mypy-plugins installed

expectation All tests pass

bug

====================================================================================================================== ERRORS =======================================================================================================================
__________________________________________________________________________________________ ERROR collecting tests/test_api/test_main/test_table_tokens.yml __________________________________________________________________________________________
/usr/lib/python3.9/vendor-packages/pytest_mypy_plugins/collect.py:101: in collect
    test_name_prefix = raw_test["case"]
E   KeyError: 'case'
___________________________________________________________________________________ ERROR collecting tests/test_port/test_references/test_inline_definitions.yml ____________________________________________________________________________________
/usr/lib/python3.9/vendor-packages/pytest_mypy_plugins/collect.py:101: in collect
    test_name_prefix = raw_test["case"]
E   KeyError: 'case'
______________________________________________________________________________________ ERROR collecting tests/test_port/test_references/test_store_labels.yml _______________________________________________________________________________________
/usr/lib/python3.9/vendor-packages/pytest_mypy_plugins/collect.py:101: in collect
    test_name_prefix = raw_test["case"]
E   KeyError: 'case'
____________________________________________________________________________________ ERROR collecting tests/test_port/test_references/test_use_existing_env.yml _____________________________________________________________________________________
/usr/lib/python3.9/vendor-packages/pytest_mypy_plugins/collect.py:101: in collect
    test_name_prefix = raw_test["case"]
E   KeyError: 'case'

problem This is a problem for people packaging markdown-it-py for OpenIndiana (read: me) where we run tests to make sure the package is working as expected.

Reproduce the bug

  1. install pytest-mypy-plugins
  2. download markdown-it-py 3.0.0.
  3. Run pytest.

List your environment

No response

chrisjsewell commented 1 year ago

Sorry but this seems like a bug in pytest-mypy-plugins, unless you can point to something specifically wrong in markdown-it-py then there is nothing I can do here