Convert storageproxy tests to be pytest-able and use the new liveserver testcase pytest fixture

This commit is contained in:
Joseph Schorr 2018-06-01 17:07:15 -04:00
parent 19ba7c6ddc
commit 544c8f0adf
2 changed files with 83 additions and 79 deletions

View file

@ -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):