Commit 4dea6120 authored by Vincent Pelletier's avatar Vincent Pelletier

Simplify test by reversing it.

parent 6ee33971
...@@ -120,11 +120,10 @@ def main(*args): ...@@ -120,11 +120,10 @@ def main(*args):
parser.add_argument("--pidfile", help="The location where pidfile will be created.") parser.add_argument("--pidfile", help="The location where pidfile will be created.")
parser.add_argument("configuration_file", nargs=1, type=argparse.FileType(), parser.add_argument("configuration_file", nargs=1, type=argparse.FileType(),
help="Slap Test Agent configuration file.") help="Slap Test Agent configuration file.")
if args == (): if args:
argument_option_instance = parser.parse_args() argument_option_instance = parser.parse_args(list(args))
else: else:
argument_option_instance = \ argument_option_instance = parser.parse_args()
parser.parse_args(list(args))
option_dict = {} option_dict = {}
configuration_file = argument_option_instance.configuration_file[0] configuration_file = argument_option_instance.configuration_file[0]
for argument_key, argument_value in vars(argument_option_instance for argument_key, argument_value in vars(argument_option_instance
......
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