1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-10 18:40:53 +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

@ -37,8 +37,8 @@ class TestBaseRequests(BaseTest):
# Allow skipping sync-token tests, when not fully supported by the backend
full_sync_token_support: ClassVar[bool] = True
def setup(self) -> None:
BaseTest.setup(self)
def setup_method(self) -> None:
BaseTest.setup_method(self)
rights_file_path = os.path.join(self.colpath, "rights")
with open(rights_file_path, "w") as f:
f.write("""\