From eb723af5ce2787dd864c97d44767cbf9bc73076b Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Mon, 26 Oct 2020 23:09:37 +0100 Subject: Do not hardcode test ids inside tests --- api/opendc/util/path_parser.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'api/opendc/util/path_parser.py') diff --git a/api/opendc/util/path_parser.py b/api/opendc/util/path_parser.py index a8bbdeba..c8452f20 100644 --- a/api/opendc/util/path_parser.py +++ b/api/opendc/util/path_parser.py @@ -31,9 +31,6 @@ def parse(version, endpoint_path): for (name, value) in zip(path, endpoint_path_parts): if name.startswith('{'): - try: - parameters[name.strip('{}')] = int(value) - except: - parameters[name.strip('{}')] = value + parameters[name.strip('{}')] = value return '{}/{}'.format(version, '/'.join(path)), parameters -- cgit v1.2.3