From 44028a5de4c948e8ada907607d96395a74ec3b16 Mon Sep 17 00:00:00 2001 From: Oleh Paduchak Date: Thu, 1 Aug 2024 16:04:09 +0300 Subject: [PATCH] fixed some imports in tests --- api/comments/serializers.py | 2 +- api_tests/comments/views/test_comment_detail.py | 2 +- api_tests/nodes/views/test_node_comments_list.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/comments/serializers.py b/api/comments/serializers.py index 6dafa8707ee..d09c0b4a272 100644 --- a/api/comments/serializers.py +++ b/api/comments/serializers.py @@ -8,7 +8,7 @@ from rest_framework.exceptions import ValidationError, PermissionDenied from api.base.exceptions import InvalidModelValueError, Conflict from api.base.utils import absolute_reverse -from api.base.settings import osf_settings +from website import settings as osf_settings from api.base.serializers import ( JSONAPISerializer, TargetField, diff --git a/api_tests/comments/views/test_comment_detail.py b/api_tests/comments/views/test_comment_detail.py index 59d09e00fa9..1e527d18612 100644 --- a/api_tests/comments/views/test_comment_detail.py +++ b/api_tests/comments/views/test_comment_detail.py @@ -4,7 +4,7 @@ from addons.wiki.tests.factories import WikiFactory from api.base.settings.defaults import API_BASE -from api.base.settings import osf_settings +from website import settings as osf_settings from api_tests import utils as test_utils from framework.auth import core from osf.models import Guid diff --git a/api_tests/nodes/views/test_node_comments_list.py b/api_tests/nodes/views/test_node_comments_list.py index 7f50be911a8..f3e34089da9 100644 --- a/api_tests/nodes/views/test_node_comments_list.py +++ b/api_tests/nodes/views/test_node_comments_list.py @@ -1,7 +1,7 @@ import pytest from addons.wiki.tests.factories import WikiFactory -from api.base.settings import osf_settings +from website import settings as osf_settings from api.base.settings.defaults import API_BASE from api_tests import utils as test_utils from framework.auth import core