Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix the test so it actually uses the host (#18031)
Patryk Zawadzki6fc1fe85ac6f
diff --git a/saleor/core/tests/test_core.py b/saleor/core/tests/test_core.pyindex 70a33508e2..ed9f284f14 100644--- a/saleor/core/tests/test_core.py+++ b/saleor/core/tests/test_core.py@@ -231,6 +231,8 @@ def test_build_absolute_uri():def test_build_absolute_uri_with_host(settings):+ settings.PUBLIC_URL = None+ settings.ENABLE_SSL = True# givenhost = "test.com"location = "images/close.svg"@@ -239,7 +241,7 @@ def test_build_absolute_uri_with_host(settings):url = build_absolute_uri(location, host)# then- assert url == f"https://example.com/{location}"+ assert url == f"https://{host}/{location}"@pytest.mark.parametrize(