diff options
Diffstat (limited to 'service/test')
-rw-r--r-- | service/test/unit/runserver_test.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/service/test/unit/runserver_test.py b/service/test/unit/runserver_test.py index 801a60bf..8650def1 100644 --- a/service/test/unit/runserver_test.py +++ b/service/test/unit/runserver_test.py @@ -75,14 +75,13 @@ class RunserverTest(unittest.TestCase): finally: sys.stdin = orig_stdin - def test_start_services_provides_port(self): - bind_address = '127.0.0.1' - bind_port = 12345 - when(app_factory).create_app(any(), bind_address, bind_port).thenReturn(None) + def test_start_services_pass_args_through(self): + args = {} + when(app_factory).create_app(any(), args).thenReturn(None) - pixelated.runserver.start_services(bind_address, bind_port) + pixelated.runserver.start_services(args) - verify(app_factory).create_app(any(), bind_address, bind_port) + verify(app_factory).create_app(any(),args) def spin_up_fifo(self, test_fifo): with open(test_fifo, 'w') as fifo: |