From 78e9688ece502378285bd8abd829ac94d0592077 Mon Sep 17 00:00:00 2001 From: Soxoj Date: Wed, 5 May 2021 23:27:30 +0300 Subject: [PATCH] Test data fix --- tests/test_maigret.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_maigret.py b/tests/test_maigret.py index 19c1db4..0f3fef5 100644 --- a/tests/test_maigret.py +++ b/tests/test_maigret.py @@ -1,5 +1,6 @@ """Maigret main module test functions""" import asyncio +import copy import pytest from mock import Mock @@ -144,7 +145,7 @@ def test_extract_ids_from_page(test_db): def test_extract_ids_from_results(test_db): - TEST_EXAMPLE = dict(RESULTS_EXAMPLE) + TEST_EXAMPLE = copy.deepcopy(RESULTS_EXAMPLE) TEST_EXAMPLE['Reddit']['ids_usernames'] = {'test1': 'yandex_public_id'} TEST_EXAMPLE['Reddit']['ids_links'] = ['https://www.reddit.com/user/test2']