Skip to content

Commit 41f2ea6

Browse files
committed
Rename tests directory
1 parent 48c898b commit 41f2ea6

13 files changed

+12
-12
lines changed

makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ clean:
2626

2727
pytest:
2828
if ! command -v pytest &>/dev/null; then python3 -m pip install --upgrade pytest; fi
29-
pytest test
29+
pytest tests
3030

3131
test:
3232
if ! command -v nosetests &>/dev/null; then python3 -m pip install --upgrade nose; fi
33-
nosetests test
33+
nosetests tests

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ warn_return_any = true
101101
warn_unused_configs = true
102102
warn_unused_ignores = true
103103
#strict = true # TODO(pyctrl): improve typings and enable strict mode
104-
exclude = ["test", ".venv"]
104+
exclude = ["tests", ".venv"]
105105

106106
[tool.pyright]
107107
defineConstant = { DEBUG = true }
108108
exclude = []
109109
executionEnvironments = []
110110
ignore = []
111-
include = ["src/inject", "test"]
111+
include = ["src/inject", "tests"]
112112
pythonPlatform = "Linux"
113113
pythonVersion = "3.11"
114114
reportMissingImports = true
@@ -183,7 +183,7 @@ known-first-party = ["inject"]
183183
[tool.pytest.ini_options]
184184
minversion = "8.4"
185185
addopts = "-vvv -ra --strict-markers --strict-config"
186-
testpaths = ["test"]
186+
testpaths = ["tests"]
187187
#filterwarnings = ["error"] # TODO(pyctrl): handle all warnings later
188188

189189
# Coverage configuration
File renamed without changes.

test/test_attr.py renamed to tests/test_attr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from dataclasses import dataclass
22
import inject
3-
from test import BaseTestInject
3+
from tests import BaseTestInject
44

55

66
class TestInjectAttr(BaseTestInject):

test/test_autoparams.py renamed to tests/test_autoparams.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22
from typing import Optional
33

4-
from test import BaseTestInject
4+
from tests import BaseTestInject
55

66
import inject
77

File renamed without changes.

test/test_context_manager.py renamed to tests/test_context_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import contextlib
22

33
import inject
4-
from test import BaseTestInject
4+
from tests import BaseTestInject
55

66

77
class Destroyable:
File renamed without changes.

test/test_inject_configuration.py renamed to tests/test_inject_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import inject
22
from inject import InjectorException
3-
from test import BaseTestInject
3+
from tests import BaseTestInject
44

55

66
class TestInjectConfiguration(BaseTestInject):
File renamed without changes.

0 commit comments

Comments
 (0)