mirror of
https://github.com/opencultureconsulting/openrefine-client.git
synced 2025-03-30 00:00:46 +01:00
Ensure default values for REFINE_{HOST,PORT}
This commit is contained in:
parent
31e30df5bd
commit
36beb59d15
@ -51,7 +51,7 @@ class RefineProjectTest(unittest.TestCase):
|
|||||||
# Mock out get_models so it doesn't attempt to connect to a server
|
# Mock out get_models so it doesn't attempt to connect to a server
|
||||||
self._get_models = refine.RefineProject.get_models
|
self._get_models = refine.RefineProject.get_models
|
||||||
refine.RefineProject.get_models = lambda self: self
|
refine.RefineProject.get_models = lambda self: self
|
||||||
|
|
||||||
def test_server_init(self):
|
def test_server_init(self):
|
||||||
RP = refine.RefineProject
|
RP = refine.RefineProject
|
||||||
p = RP('http://127.0.0.1:3333/project?project=1658955153749')
|
p = RP('http://127.0.0.1:3333/project?project=1658955153749')
|
||||||
@ -74,6 +74,9 @@ class RefineProjectTest(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
# Restore mocked get_models
|
# Restore mocked get_models
|
||||||
refine.RefineProject.get_models = self._get_models
|
refine.RefineProject.get_models = self._get_models
|
||||||
|
# Ensure default values for REFINE_{HOST,PORT}
|
||||||
|
refine.REFINE_HOST='127.0.0.1'
|
||||||
|
refine.REFINE_PORT='3333'
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user