summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2021-11-15 14:10:59 -0800
committerJohn L. Villalovos <john@sodarock.com>2021-11-15 14:31:08 -0800
commit94feb8a5534d43a464b717275846faa75783427e (patch)
treee70da82b9e2fcc1d7a652afe239b7179c74755bc
parent06184daafd5010ba40bb39a0768540b7e98bd171 (diff)
downloadgitlab-94feb8a5534d43a464b717275846faa75783427e.tar.gz
chore: create a 'tests/meta/' directory and put test_mro.py in it
The 'test_mro.py' file is not really a unit test but more of a 'meta' check on the validity of the code base.
-rw-r--r--pyproject.toml1
-rw-r--r--tests/meta/__init__.py0
-rw-r--r--tests/meta/test_mro.py (renamed from tests/unit/objects/test_mro.py)0
-rw-r--r--tox.ini4
4 files changed, 3 insertions, 2 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 160232c..f48ed5f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -27,6 +27,7 @@ module = [
"setup",
"tests.functional.*",
"tests.functional.api.*",
+ "tests.meta.*",
"tests.unit.*",
"tests.smoke.*"
]
diff --git a/tests/meta/__init__.py b/tests/meta/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/meta/__init__.py
diff --git a/tests/unit/objects/test_mro.py b/tests/meta/test_mro.py
index 8f67b77..8f67b77 100644
--- a/tests/unit/objects/test_mro.py
+++ b/tests/meta/test_mro.py
diff --git a/tox.ini b/tox.ini
index da1f1e8..32c6658 100644
--- a/tox.ini
+++ b/tox.ini
@@ -13,7 +13,7 @@ install_command = pip install {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-test.txt
commands =
- pytest tests/unit {posargs}
+ pytest tests/unit tests/meta {posargs}
[testenv:pep8]
basepython = python3
@@ -72,7 +72,7 @@ commands = python setup.py build_sphinx
[testenv:cover]
commands =
pytest --cov --cov-report term --cov-report html \
- --cov-report xml tests/unit {posargs}
+ --cov-report xml tests/unit tests/meta {posargs}
[coverage:run]
omit = *tests*