rename deprecated methods
This commit is contained in:
parent
cbe61bb984
commit
ed141a3ae9
@ -40,7 +40,7 @@ class TestCLI:
|
|||||||
"""Remove config file"""
|
"""Remove config file"""
|
||||||
os.remove(CONFIGFILE)
|
os.remove(CONFIGFILE)
|
||||||
|
|
||||||
def setup(self):
|
def setup_method(self):
|
||||||
"""Create a file to print to and set up env"""
|
"""Create a file to print to and set up env"""
|
||||||
self.env = None
|
self.env = None
|
||||||
self.default_args = None
|
self.default_args = None
|
||||||
@ -62,7 +62,7 @@ class TestCLI:
|
|||||||
finally:
|
finally:
|
||||||
fhandle.close()
|
fhandle.close()
|
||||||
|
|
||||||
def teardown(self):
|
def teardown_method(self):
|
||||||
"""Destroy printer file and env"""
|
"""Destroy printer file and env"""
|
||||||
os.remove(DEVFILE)
|
os.remove(DEVFILE)
|
||||||
self.env.clear()
|
self.env.clear()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user