1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-15 20:36:55 +00:00

fix for pytest warning: "is using nose-specific method: setup(self)"

This commit is contained in:
Peter Bieringer 2024-03-12 08:02:24 +01:00 committed by Unrud
parent f3f3995b01
commit 6f7abbcba5
5 changed files with 18 additions and 18 deletions

View file

@ -31,10 +31,10 @@ class TestConfig:
colpath: str
def setup(self) -> None:
def setup_method(self) -> None:
self.colpath = tempfile.mkdtemp()
def teardown(self) -> None:
def teardown_method(self) -> None:
shutil.rmtree(self.colpath)
def _write_config(self, config_dict: types.CONFIG, name: str) -> str: