From 98d5996497530a1069e227f6c9933789c001af30 Mon Sep 17 00:00:00 2001 From: Patrick Maia and Victor Shyba Date: Wed, 26 Nov 2014 13:35:08 -0300 Subject: Card #149 - enables https on service --- service/test/unit/runserver_test.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'service/test') 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: -- cgit v1.2.3