Skip to content
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

error when running pytest path/to/test_file: Tests must be run with $DAFT_RUNNER env var #3288

Open
universalmind303 opened this issue Nov 13, 2024 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@universalmind303
Copy link
Collaborator

Describe the bug

I am getting a bug when running `pytest on test files.

To Reproduce

> pytest path/to/test_file.py
/Users/corygrinstead/Development/Daft/.venv/lib/python3.11/site-packages/_pytest/config/__init__.py:331: PluggyTeardownRaisedWarning: A plugin raised an exception during an old-style hookwrapper teardown.
Plugin: helpconfig, Hook: pytest_cmdline_parse
ConftestImportFailure: AssertionError: Tests must be run with $DAFT_RUNNER env var
assert None is not None (from /Users/corygrinstead/Development/Daft/tests/conftest.py)
For more information see https://pluggy.readthedocs.io/en/stable/api_reference.html#pluggy.PluggyTeardownRaisedWarning
  config = pluginmanager.hook.pytest_cmdline_parse(
ImportError while loading conftest '/Users/corygrinstead/Development/Daft/tests/conftest.py'.
tests/conftest.py:189: in <module>
    params=[1, None] if get_tests_daft_runner_name() == "native" else [None],
tests/conftest.py:35: in get_tests_daft_runner_name
    assert name is not None, "Tests must be run with $DAFT_RUNNER env var"
E   AssertionError: Tests must be run with $DAFT_RUNNER env var
E   assert None is not None

Expected behavior

No response

Component(s)

Developer Tools

Additional context

No response

@universalmind303 universalmind303 added bug Something isn't working needs triage labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

1 participant