(EXAMPLE) feat: add pytest flag to run v1 REST API tests #430
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This feature adds a
--run-v1
flag to pytest intests/conftest.py
to enable running of v1 API tests. To mark a test as v1, annotate the test function with@pytest.mark.v1
.We intend to use this feature during the development of v1 of the API. We expect tests to fail while the service layer is not implemented so v1 tests should be excluded by default.
To run only v1 tests use the command below:
A copy of the v0 Queue tests has been placed in the v1 folder with the API_ROOT set to v1 and all tests marked as v1 as a demonstration of this feature. These tests to not properly exercise the new API and are expected to fail.