针对你遇到的 pytestconfigwarning: no files were found in testpaths; consider removing or 警告,这通常意味着 pytest 在其配置文件中指定的 testpaths 目录下没有找到任何测试文件。以下是一些解决此警告的步骤和建议: 检查pytest 配置文件: pytest 配置文件通常是 pytest.ini、tox.ini 或setup.cfg。你需要检查...
In cibuildwheel, we have two test suites - the unit tests at /unit_test and the integration test suite at /test. Both /unit_test and /test are listed in testpaths- pyproject.toml #... [tool.pytest.ini_options] testpaths = [ "test", "unit...
Changelog: Fix: Set correct testpaths for pytest. Docs: Omit The tests were moved to a new location in c6748b1. This updates pytest's testpaths to the new path, and also corrects the documentation accordingly. Refer to the issue that supports this Pull Request. If the issue has missing ...
1 例如,您应该将pytest.ini直接放在根目录中django-project,如下所示: \n django-project\n |-core\n | \xe2\x94\x94-settings.py\n |-my_app1\n |-my_app2\n |-pytest.ini # Here\n \xe2\x94\x94-tests\n |-__init__.py\n \xe2\x94\x94-test_1.py\n Run Code Online (Sandbox C...
pytest version: 3.2.1 python version: cpython 2.7 OS: opensuse 12 pytestbot added the type: question label Apr 17, 2018 Contributor pytestbot commented Apr 17, 2018 GitMate.io thinks possibly related issues are #241 (Allow for a forced xpass), #135 (allow to disable the asserts), ...
Type: Bug Behaviour Discover tests is overriding standard testpaths after configuration with the "Configure Tests" command. By forcing the selection of the directory, the pytest --collect-only test discovery is run with a single director...
The doctest is run via separate pytest invocation. We might be running twice then, as we do pass --doctest-modules in the pyproject.toml. I am OK with this approach (thank you very much for investigating!), but it would be nice to understand why that configuration seemly disconnected is ...