From e0853408d6840c52e44943d09b1969518806daab Mon Sep 17 00:00:00 2001 From: Leslie VanDeMark Date: Thu, 12 Dec 2024 21:22:48 +0000 Subject: [PATCH] fix bug in bookmarks test --- tests/test_github_bookmarks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_github_bookmarks.py b/tests/test_github_bookmarks.py index c9a5302..e5cea25 100644 --- a/tests/test_github_bookmarks.py +++ b/tests/test_github_bookmarks.py @@ -1,6 +1,7 @@ import datetime import dateutil.parser import pytz +import copy from tap_tester import runner, menagerie, connections @@ -28,7 +29,7 @@ def calculated_states_by_stream(self, current_state, synced_records, replication repo = self.get_properties().get('repository') #stream_to_calculated_state = {repo: {stream: "" for stream in current_state['bookmarks'][repo].keys()}} - stream_to_calculated_state = current_state.copy()['bookmarks'] + stream_to_calculated_state = copy.deepcopy(current_state)['bookmarks'] for stream in current_state['bookmarks'].keys(): for repo, state in current_state['bookmarks'][stream].items():