Commit be025b50 authored by Nicolas Wavrant's avatar Nicolas Wavrant

test / runner: adds a tearDown function

parent f225f7cf
...@@ -9,6 +9,11 @@ from slapos.runner import utils as runner_utils ...@@ -9,6 +9,11 @@ from slapos.runner import utils as runner_utils
from slapos.runner import sup_process as runner_process from slapos.runner import sup_process as runner_process
class TestRunner(unittest.TestCase): class TestRunner(unittest.TestCase):
def tearDown(self):
htpasswd_file = os.path.join(*(os.getcwd(), '.htpasswd'))
if os.path.exists(htpasswd_file):
os.remove(htpasswd_file)
def test_UserCanLoginAndUpdateCredentials(self): def test_UserCanLoginAndUpdateCredentials(self):
""" """
* Create a user with createNewUser * Create a user with createNewUser
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment