New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Several tests failing on Guix #347
Comments
For some reason the data_provider cannot find test fixture files in directory https://github.com/Instagram/LibCST/tree/master/libcst/tests/pyre You can try run this script to generate the fixture. The error of test_codemod_formatter_error_input was caused by the expected error wasn't raised, you can manually run the command to dig into. LibCST/libcst/codemod/tests/test_codemod_cli.py Lines 16 to 24 in c023fa7
|
It's not obvious from the error message, but… could it be that
Thanks! It actually work when I call the script directly. I guess it's a problem with the Guix build environment that I'll have to fix myself. |
I think this will be fixed with #365 |
Hi @thatch! Thanks for letting me know, but… it does not solve the problem! :-( I fetch the latest 0.3.10 from PyPI, but still have to run the following commands to make the test suite pass:
|
I'm working on packaging LibCST for Guix (https://guix.gnu.org), but several tests are failing (see full log at the bottom).
3 of them are failing with the same error message:
"No data_provider tests were created for test_type_availability! Please double check your data."
. Those are:The other is
libcst.codemod.tests.test_codemod_cli.TestCodemodCLI
, that fails because it cannot parse a piece of code.Based on what I read in
tox.ini
, I run the tests usingpython -m unittest
. I also had runpython3 -m libcst.codegen.generate visitors; python3 -m libcst.codegen.generate return_types
to fix 2 errors.For the time being, I'll disable those tests, but any help in fixing those would be welcome!
The text was updated successfully, but these errors were encountered: