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

@ -48,7 +48,7 @@ class BaseTest:
configuration: config.Configuration
application: app.Application
def setup(self) -> None:
def setup_method(self) -> None:
self.configuration = config.load()
self.colpath = tempfile.mkdtemp()
self.configure({
@ -62,7 +62,7 @@ class BaseTest:
self.configuration.update(config_, "test", privileged=True)
self.application = app.Application(self.configuration)
def teardown(self) -> None:
def teardown_method(self) -> None:
shutil.rmtree(self.colpath)
def request(self, method: str, path: str, data: Optional[str] = None,