-
Notifications
You must be signed in to change notification settings - Fork 368
Compatibility tips
Kodi Arfer edited this page Apr 21, 2024
·
1 revision
If it takes some adjustments to get some software or service, such as a specific Python package, to work well with Hy, describe the necessary adjustments here. For general advice on using Python from Hy, see the manual.
Use a conftest.py
like Hyrule's to collect tests from Hy files, and set the configuration option python_functions
as in Hyrule to collect tests with mangled names.
When listing a Hy file to run tests from on the command line, as in pytest tests/test_phooey.hy
, use --assert=plain
to keep pytest from interpreting the file as Python.