summaryrefslogtreecommitdiff
path: root/service/test/unit
diff options
context:
space:
mode:
authorPatrick Maia and Victor Shyba <pixelated-team+pmaia+vshyba@thoughtworks.com>2014-11-26 13:35:08 -0300
committerPatrick Maia <pmaia@thoughtworks.com>2014-11-27 17:05:08 -0300
commit98d5996497530a1069e227f6c9933789c001af30 (patch)
tree390fe69bf4d1ae998141c5cc075a74f5d02fc8b5 /service/test/unit
parent16c1d14808330f23bcfa7f186124533c13b44ddc (diff)
Card #149 - enables https on service
Diffstat (limited to 'service/test/unit')
-rw-r--r--service/test/unit/runserver_test.py11
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: