Skip to content

Commit 5aab9e0

Browse files
Merge pull request JonathonReinhart#251 from JonathonReinhart/test-cleanup
Cleanup and refactor tests
2 parents 5994b92 + fe16200 commit 5aab9e0

File tree

7 files changed

+1206
-1368
lines changed

7 files changed

+1206
-1368
lines changed

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ requires = [
5454
packages = ["scuba", "tests"]
5555
warn_unused_configs = true
5656
warn_return_any = true
57-
58-
[[tool.mypy.overrides]]
59-
module = "scuba.*"
6057
disallow_untyped_calls = true
6158
disallow_untyped_defs = true
6259
disallow_incomplete_defs = true

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
from pathlib import Path
12
import pytest
23

34

45
@pytest.fixture
5-
def in_tmp_path(tmp_path, monkeypatch):
6+
def in_tmp_path(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> Path:
67
"""Runs a test in a temporary directory provided by the tmp_path fixture"""
78
monkeypatch.chdir(tmp_path)
89
return tmp_path

0 commit comments

Comments
 (0)