Use a different port number for each live server test case in the registry tests

This commit is contained in:
Joseph Schorr 2015-09-08 10:40:10 -04:00
parent b73c4135db
commit d0e22e5afb

View file

@ -68,11 +68,16 @@ class TestFeature(object):
data=json.dumps(dict(value=self.old_value)),
headers={'Content-Type': 'application/json'})
_PORT_NUMBER = 5001
class RegistryTestCase(LiveServerTestCase):
maxDiff = None
def create_app(self):
global _PORT_NUMBER
_PORT_NUMBER = _PORT_NUMBER + 1
app.config['TESTING'] = True
app.config['LIVESERVER_PORT'] = _PORT_NUMBER
return app
def setUp(self):