Skip to content

Commit

Permalink
Merge pull request #2147 from python-gitlab/jlvillal/api_func_v4
Browse files Browse the repository at this point in the history
chore: change name of API functional test to `api_func_v4`
  • Loading branch information
nejch committed Jul 19, 2022
2 parents e772248 + 8cf5cd9 commit ed110bd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -61,7 +61,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
toxenv: [py_func_v4, cli_func_v4]
toxenv: [api_func_v4, cli_func_v4]
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand Down
10 changes: 5 additions & 5 deletions CONTRIBUTING.rst
Expand Up @@ -89,15 +89,15 @@ To run these tests:
tox -e cli_func_v4
# run the python API tests:
tox -e py_func_v4
tox -e api_func_v4
When developing tests it can be a little frustrating to wait for GitLab to spin
up every run. To prevent the containers from being cleaned up afterwards, pass
`--keep-containers` to pytest, i.e.:

.. code-block:: bash
tox -e py_func_v4 -- --keep-containers
tox -e api_func_v4 -- --keep-containers
If you then wish to test against a clean slate, you may perform a manual clean
up of the containers by running:
Expand All @@ -117,11 +117,11 @@ The tag must match an exact tag on Docker Hub:
.. code-block:: bash
# run tests against `nightly` or specific tag
GITLAB_TAG=nightly tox -e py_func_v4
GITLAB_TAG=12.8.0-ce.0 tox -e py_func_v4
GITLAB_TAG=nightly tox -e api_func_v4
GITLAB_TAG=12.8.0-ce.0 tox -e api_func_v4
# run tests against the latest gitlab EE image
GITLAB_IMAGE=gitlab/gitlab-ee tox -e py_func_v4
GITLAB_IMAGE=gitlab/gitlab-ee tox -e api_func_v4
A freshly configured gitlab container will be available at
http://localhost:8080 (login ``root`` / password ``5iveL!fe``). A configuration
Expand Down
2 changes: 1 addition & 1 deletion codecov.yml
Expand Up @@ -7,7 +7,7 @@ coverage:
range: "70...100"

comment:
after_n_builds: 3 # coverage, py_func_v4, py_func_cli
after_n_builds: 3 # coverage, api_func_v4, py_func_cli
layout: "diff,flags,files"
behavior: default
require_changes: yes
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -106,7 +106,7 @@ deps = -r{toxinidir}/requirements-docker.txt
commands =
pytest --script-launch-mode=subprocess --cov --cov-report xml tests/functional/cli {posargs}

[testenv:py_func_v4]
[testenv:api_func_v4]
deps = -r{toxinidir}/requirements-docker.txt
commands =
pytest --cov --cov-report xml tests/functional/api {posargs}
Expand Down

0 comments on commit ed110bd

Please sign in to comment.