Closed glehmann closed 5 months ago
The test files must be named test_*.py
for test discovery to find them.
And you need to move them to bindings/python/tests
to avoid import errors.
ok, nice to have moved to the standard convention 👍
that plus removing the name parameter when creating the Language
and my tests are green again :-)
My python tests are broken since the update of the v2 apparently. The tests broke without any changes on my side — see the scheduled
ci
workflows in https://github.com/glehmann/tree-sitter-earthfile/actionsI’ve tried moving my test to
bindings/python/tests
, because this directory appear in the last commit in the current v2 tag and this dir is the error messagesImportError: Start directory is not importable: 'bindings/python/tests'
but then the tests are failing because no test can be found.Is there something else I should do?