aboutsummaryrefslogtreecommitdiff
path: root/tests/test_file_class.py
diff options
context:
space:
mode:
authorCody Logan <cody@lokken.dev>2023-11-03 10:40:07 -0700
committerCody Logan <cody@lokken.dev>2023-11-03 10:40:07 -0700
commit08a5907bd8b34e2f99a0c74e6756c66134ceb7d3 (patch)
tree62465f3adaae1c9cca0734f79931783407d8d854 /tests/test_file_class.py
parentbc5d19c8150bf7960839243ceeb6f62a9df54e18 (diff)
downloadwikiget-08a5907bd8b34e2f99a0c74e6756c66134ceb7d3.tar.gz
wikiget-08a5907bd8b34e2f99a0c74e6756c66134ceb7d3.zip
Move from unittest.mock to pytest's monkeypatch where feasible
Diffstat (limited to 'tests/test_file_class.py')
-rw-r--r--tests/test_file_class.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_file_class.py b/tests/test_file_class.py
index b935efc..ede4be1 100644
--- a/tests/test_file_class.py
+++ b/tests/test_file_class.py
@@ -22,7 +22,7 @@ from wikiget.file import File
class TestFileClass:
- @pytest.fixture(scope="class")
+ @pytest.fixture
def file_with_name(self) -> File:
"""
A File object created with only a name should set its destination property to
@@ -39,7 +39,7 @@ class TestFileClass:
def test_file_with_name_site(self, file_with_name: File) -> None:
assert file_with_name.site == DEFAULT_SITE
- @pytest.fixture(scope="class")
+ @pytest.fixture
def file_with_name_and_dest(self) -> File:
"""
A File object created with a name and destination should set those properties