Repository navigation
Conversation
|
This change makes the reported header no longer appear unless pytest is started from Also, since |
Running the http pytest had to be done from tests directory or above, because the repeat argument fixture was defined in tests/conftest.py. However, the repeat argument is not needed because its functionality can be provided by pytest-repeat as documented in the test's README.md. So, removed the pytest_addoption function for the repeat argument and the pytest_report_header function is moved to tests/http/conftest.py. TODO: Remove repeat argument from all tests. As a stopgap, a one-element list is defined for it for now.
The whole of the http testsuite lives within the Now the proper "root" directory of something can be considered a matter of opinion. I prefer a clear separation of the http pytest testsuites from the other C testsuites, and thus prefer properly containing it in a sub-directory. Note however, that this is not the main thing about this PR. Though I titled this PR: constrain http pytest to tests/http directory, the main thing of this PR is: though documented that the testsuites can be properly run from within
From
So repeating can be done with the The proper fix is to remove the repeat argument everywhere. Before that is done, as a stopgap the repeat fixture is defined in |
|
Thanks for the explanation. I think I can live with the report not showing up from the curl directory. |
Running the http pytest had to be done from tests directory or above, because the repeat argument fixture was defined in tests/conftest.py. However, the repeat argument is not needed because its functionality can be provided by pytest-repeat as documented in the test's README.md. So, removed the pytest_addoption function for the repeat argument and the pytest_report_header function is moved to tests/http/conftest.py.
TODO: Remove repeat argument from all tests. As a stopgap, a one-element list is defined for it for now.