Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
- name: Run pytest tests
run: PYTHONPATH='.' pytest --num-shards=4 --shard-id=${{ matrix.shard }} -n auto tests
- name: Run mypy on the test cases
run: mypy --strict tests/assert_type
run: mypy --strict tests

stubtest:
timeout-minutes: 10
Expand Down
6 changes: 3 additions & 3 deletions tests/test_error_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def test_handles_filename(capsys: Any, filename: str) -> None:
),
],
)
def test_toml_misconfiguration_handling(capsys: Any, config_file_contents, message_part) -> None:
def test_toml_misconfiguration_handling(capsys: Any, config_file_contents: str, message_part: str) -> None:
with write_to_file(config_file_contents, suffix=".toml") as filename:
with pytest.raises(SystemExit, match="2"):
DjangoPluginConfig(filename)
Expand All @@ -163,7 +163,7 @@ def test_correct_toml_configuration(boolean_value: str) -> None:


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


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