Skip to content

Commit 1a71eba

Browse files
Run mypy on every tests (#2661)
1 parent 65ac16c commit 1a71eba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
- name: Run pytest tests
7171
run: PYTHONPATH='.' pytest --num-shards=4 --shard-id=${{ matrix.shard }} -n auto tests
7272
- name: Run mypy on the test cases
73-
run: mypy --strict tests/assert_type
73+
run: mypy --strict tests
7474

7575
stubtest:
7676
timeout-minutes: 10

tests/test_error_handling.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def test_handles_filename(capsys: Any, filename: str) -> None:
137137
),
138138
],
139139
)
140-
def test_toml_misconfiguration_handling(capsys: Any, config_file_contents, message_part) -> None:
140+
def test_toml_misconfiguration_handling(capsys: Any, config_file_contents: str, message_part: str) -> None:
141141
with write_to_file(config_file_contents, suffix=".toml") as filename:
142142
with pytest.raises(SystemExit, match="2"):
143143
DjangoPluginConfig(filename)
@@ -163,7 +163,7 @@ def test_correct_toml_configuration(boolean_value: str) -> None:
163163

164164

165165
@pytest.mark.parametrize("boolean_value", ["true", "True", "false", "False"])
166-
def test_correct_configuration(boolean_value) -> None:
166+
def test_correct_configuration(boolean_value: str) -> None:
167167
"""Django settings module gets extracted given valid configuration."""
168168
config_file_contents = "\n".join(
169169
[
@@ -198,7 +198,7 @@ def test_correct_toml_configuration_with_django_setting_from_env(boolean_value:
198198

199199

200200
@pytest.mark.parametrize("boolean_value", ["true", "True", "false", "False"])
201-
def test_correct_configuration_with_django_setting_from_env(boolean_value) -> None:
201+
def test_correct_configuration_with_django_setting_from_env(boolean_value: str) -> None:
202202
"""Django settings module gets extracted given valid configuration."""
203203
config_file_contents = "\n".join(
204204
[

0 commit comments

Comments
 (0)