From 4d5c876a37a659f491e46e2fce4095bc2bb5e75e Mon Sep 17 00:00:00 2001 From: Steve Milner Date: Wed, 8 Mar 2017 15:37:02 -0500 Subject: [PATCH] service: --bus-uri no longer has a default Closes #28 --- src/commissaire_service/service/__init__.py | 3 +-- test/test_service_add_service_arguments.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/commissaire_service/service/__init__.py b/src/commissaire_service/service/__init__.py index 2747590..e12dba7 100644 --- a/src/commissaire_service/service/__init__.py +++ b/src/commissaire_service/service/__init__.py @@ -38,7 +38,7 @@ def add_service_arguments(parser): --config-file (string, no default) --bus-exchange (string, with default) - --bus-uri (string, with default) + --bus-uri (string, no default) :param parser: An argument parser instance :type parser: argparse.ArgumentParser @@ -51,7 +51,6 @@ def add_service_arguments(parser): help='Message bus exchange name.') parser.add_argument( '--bus-uri', type=str, metavar='BUS_URI', - default='redis://127.0.0.1:6379/', # FIXME Remove before release help=( 'Message bus connection URI. See: ' 'http://kombu.readthedocs.io/en/latest/userguide/connections.html')) # noqa diff --git a/test/test_service_add_service_arguments.py b/test/test_service_add_service_arguments.py index cd3ec7a..db45496 100644 --- a/test/test_service_add_service_arguments.py +++ b/test/test_service_add_service_arguments.py @@ -43,5 +43,5 @@ def test_add_service_arguments(self): # Check for presence of defaults. self.assertIsNone(args.config_file) + self.assertIsNone(args.bus_uri) self.assertIsNotNone(args.bus_exchange) - self.assertIsNotNone(args.bus_uri)