Skip to content

Commit

Permalink
fixup: import settings from django, not directly
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-psb committed Dec 11, 2024
1 parent a7b671a commit b755d0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pulpcore/tests/functional/api/test_crud_domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import string
import json
from pulpcore.client.pulpcore import ApiException
from pulpcore.app import settings
from django.conf import settings

from pulpcore.tests.functional.utils import PulpTaskError

Expand Down Expand Up @@ -59,7 +59,7 @@ def test_default_domain(pulpcore_bindings):
# Read the default domain, ensure storage is set to default
default_domain = domains.results[0]
assert default_domain.name == "default"
assert default_domain.storage_class == settings.STORAGES["default"]["BACKEND"]
assert default_domain.storage_class == settings.storages.default.backend
assert default_domain.redirect_to_object_storage == settings.REDIRECT_TO_OBJECT_STORAGE
assert default_domain.hide_guarded_distributions == settings.HIDE_GUARDED_DISTRIBUTIONS

Expand Down

0 comments on commit b755d0c

Please sign in to comment.