You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
661 B
23 lines
661 B
https://docs.pytest.org/en/stable/deprecations.html#setup-teardown
|
|
|
|
--- tests/alias_dict.py
|
|
+++ tests/alias_dict.py
|
|
@@ -36,7 +36,7 @@ class AliasDict_:
|
|
ad.unalias("lol no")
|
|
|
|
class aliases_of:
|
|
- def setup(self):
|
|
+ def setup_method(self):
|
|
self.ad = AliasDict()
|
|
|
|
def returns_list_of_aliases_for_given_real_key(self):
|
|
@@ -162,7 +162,7 @@ class AliasDict_:
|
|
class aliases_are_not_real_keys:
|
|
"aliases are not real keys"
|
|
|
|
- def setup(self):
|
|
+ def setup_method(self):
|
|
self.a = AliasDict({"key1": "val1", "key2": "val2"})
|
|
self.a.alias("myalias", "key1")
|
|
|