Allow REFINE_{HOST,PORT} to be set in code.

This commit is contained in:
Paul Makepeace 2011-05-27 00:45:10 +01:00
parent 45a80902ef
commit 83f2649221
1 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,10 @@ class RefineProjectTest(unittest.TestCase):
p = RP('1658955153749')
self.assertEqual(p.server.server, 'http://127.0.0.1:3333')
self.assertEqual(p.project_id, '1658955153749')
refine.REFINE_HOST='10.0.0.1'
refine.REFINE_PORT='80'
p = RP('1658955153749')
self.assertEqual(p.server.server, 'http://10.0.0.1:80')
def tearDown(self):
# Restore mocked get_models