Use a different port number for each live server test case in the registry tests
This commit is contained in:
parent
b73c4135db
commit
d0e22e5afb
1 changed files with 5 additions and 0 deletions
|
@ -68,11 +68,16 @@ class TestFeature(object):
|
||||||
data=json.dumps(dict(value=self.old_value)),
|
data=json.dumps(dict(value=self.old_value)),
|
||||||
headers={'Content-Type': 'application/json'})
|
headers={'Content-Type': 'application/json'})
|
||||||
|
|
||||||
|
_PORT_NUMBER = 5001
|
||||||
|
|
||||||
class RegistryTestCase(LiveServerTestCase):
|
class RegistryTestCase(LiveServerTestCase):
|
||||||
maxDiff = None
|
maxDiff = None
|
||||||
|
|
||||||
def create_app(self):
|
def create_app(self):
|
||||||
|
global _PORT_NUMBER
|
||||||
|
_PORT_NUMBER = _PORT_NUMBER + 1
|
||||||
app.config['TESTING'] = True
|
app.config['TESTING'] = True
|
||||||
|
app.config['LIVESERVER_PORT'] = _PORT_NUMBER
|
||||||
return app
|
return app
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
|
Reference in a new issue