Skip to content

Commit

Permalink
Merge pull request #251 from JonathonReinhart/test-cleanup
Browse files Browse the repository at this point in the history
Cleanup and refactor tests
  • Loading branch information
JonathonReinhart authored Mar 25, 2024
2 parents 5994b92 + fe16200 commit 5aab9e0
Show file tree
Hide file tree
Showing 7 changed files with 1,206 additions and 1,368 deletions.
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ requires = [
packages = ["scuba", "tests"]
warn_unused_configs = true
warn_return_any = true

[[tool.mypy.overrides]]
module = "scuba.*"
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from pathlib import Path
import pytest


@pytest.fixture
def in_tmp_path(tmp_path, monkeypatch):
def in_tmp_path(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> Path:
"""Runs a test in a temporary directory provided by the tmp_path fixture"""
monkeypatch.chdir(tmp_path)
return tmp_path
Loading

0 comments on commit 5aab9e0

Please sign in to comment.