Chinese-Prestudy icon indicating copy to clipboard operation
Chinese-Prestudy copied to clipboard

Test failure: QCheckBox not defined

Open telotortium opened this issue 10 months ago • 0 comments

Got the following test error when running make test:

=================================================================================================================== ERRORS ===================================================================================================================
____________________________________________________________________________________________________ ERROR collecting tests/test_init.py _____________________________________________________________________________________________________
tests/test_init.py:32: in <module>
    from chinese_prestudy import ChinesePrestudy
chinese_prestudy.py:79: in <module>
    class SelectedWords:
chinese_prestudy.py:98: in SelectedWords
    def checkbox(self, word: chinesevocablist.VocabWord, default: bool) -> QCheckBox:
E   NameError: name 'QCheckBox' is not defined
============================================================================================================== warnings summary ==============================================================================================================
venv/lib/python3.11/site-packages/jieba/_compat.py:18
  /Users/rmi1/Library/Application Support/Anki2/addons21/Chinese-Prestudy/venv/lib/python3.11/site-packages/jieba/_compat.py:18: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================================================================================== short test summary info ===========================================================================================================
ERROR tests/test_init.py - NameError: name 'QCheckBox' is not defined

telotortium avatar Mar 29 '24 21:03 telotortium