Convert storageproxy tests to be pytest-able and use the new liveserver testcase pytest fixture
This commit is contained in:
parent
19ba7c6ddc
commit
544c8f0adf
2 changed files with 83 additions and 79 deletions
|
@ -75,6 +75,7 @@ class liveFlaskServer(object):
|
|||
raise RuntimeError("Failed to start the server after %d seconds. " % timeout)
|
||||
|
||||
if self._can_connect():
|
||||
self.app.config['SERVER_HOSTNAME'] = 'localhost:%s' % self._port_value.value
|
||||
break
|
||||
|
||||
def _can_connect(self):
|
||||
|
|
Reference in a new issue