Commit 43ee1650 authored by Robin Obůrka's avatar Robin Obůrka

network: Remove argument for test - it is not necessary anymore

parent b2c3d1dd
...@@ -167,19 +167,14 @@ class SN: ...@@ -167,19 +167,14 @@ class SN:
an API-like interface for requesting ZMQ sockets based on available an API-like interface for requesting ZMQ sockets based on available
resources. resources.
""" """
def __init__(self, ctx, argparser=None, **options): def __init__(self, ctx, argparser=None):
## Gather data ## Gather data
self.context = ctx self.context = ctx
## This is small hack to make the whole module ready for black-box tests
args_to_parse = None
if "args" in options:
args_to_parse = options["args"]
if argparser: if argparser:
self.args = argparser.parse_args(args_to_parse) self.args = argparser.parse_args()
else: else:
self.args = get_arg_parser().parse_args(args_to_parse) self.args = get_arg_parser().parse_args()
## Build all necessary configuration ## Build all necessary configuration
self.build_global_configuration() self.build_global_configuration()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment