From b91de7b5c8a6dd5bbe3a8c52e68a9aebfe530886 Mon Sep 17 00:00:00 2001 From: John Tordoff <> Date: Wed, 26 Jul 2023 10:29:02 -0400 Subject: [PATCH] clean-up and revert old changes --- api/addons/serializers.py | 10 ++++------ api_tests/nodes/views/test_node_addons.py | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/api/addons/serializers.py b/api/addons/serializers.py index 4e8ff223c1e4..28ef16e8aa12 100644 --- a/api/addons/serializers.py +++ b/api/addons/serializers.py @@ -27,15 +27,13 @@ def get_absolute_url(self, obj): # than top-level objects. return - query_kwargs = { - 'path': obj['path'], - 'id': obj['id'], - } - return absolute_reverse( 'nodes:node-addon-folders', kwargs=self.context['request'].parser_context['kwargs'], - query_kwargs=query_kwargs, + query_kwargs={ + 'path': obj['path'], + 'id': obj['id'] + } ) def get_root_folder(self, obj): diff --git a/api_tests/nodes/views/test_node_addons.py b/api_tests/nodes/views/test_node_addons.py index d038d0907d64..cebd3f322e77 100644 --- a/api_tests/nodes/views/test_node_addons.py +++ b/api_tests/nodes/views/test_node_addons.py @@ -805,7 +805,7 @@ def test_folder_list_GET_expected_behavior(self, mock_libraries): 'fileEditing': 'members', 'libraryEditing': 'members', 'type': 'Private', - 'id': '18497322', + 'id': 18497322, 'name': 'Group Library I' }, 'version': 1,