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:
parent
f3f3995b01
commit
6f7abbcba5
5 changed files with 18 additions and 18 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue