Skip to content

Commit

Permalink
Remove testrepository dependency
Browse files Browse the repository at this point in the history
testrepository was an openstack concept necessary when you had a lot
more tests than we do. It appears to be abandoned.

Remove the dependency and go back to testtools.run for a launcher.
  • Loading branch information
jamielennox committed Jun 8, 2023
1 parent 722cb3a commit 15df8e2
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
pip install -e .
- name: Test Testtools
run: python setup.py testr
run: python -m testtools.run discover

- name: Test PyTest
run: pytest tests/pytest
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
pip install -e .
- name: Test Testtools
run: python setup.py testr
run: python -m testtools.run discover

- name: Test PyTest
run: pytest tests/pytest
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ output/*/index.html
doc/build
doc/source/_build

.testrepository
.pytest_cache
tests/pytest/.cache/

Expand Down
4 changes: 0 additions & 4 deletions .testr.conf

This file was deleted.

1 change: 0 additions & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ mock; python_version < '3.3'
purl
pytest
sphinx
testrepository>=0.0.18
testtools
requests_futures
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/requests-mock
commands =
pytest tests/pytest
python setup.py testr
python -m testtools.run {posargs:discover}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
Expand All @@ -38,7 +38,7 @@ deps =
[testenv:oldest-requirements]
install_command = pip install -U {opts} -c {toxinidir}/.tox.oldest.txt {packages}
commands =
python setup.py testr --testr-args='{posargs}'
python -m testtools.run {posargs:discover}
deps =
-r{toxinidir}/test-requirements.txt
-c{toxinidir}/.tox.oldest.txt
Expand Down

0 comments on commit 15df8e2

Please sign in to comment.