From 91e6513937bd7105667ea25c58b5aa8f2d959e52 Mon Sep 17 00:00:00 2001 From: Grant Gainey Date: Mon, 11 Nov 2024 16:08:57 -0500 Subject: [PATCH] Merge pull request #760 from gerrod3/fix-python-domain-test Fix domain tests (cherry picked from commit 3541b58e094c0d716fe8c74619833e32d181a8c9) --- pulp_python/tests/functional/api/test_domains.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pulp_python/tests/functional/api/test_domains.py b/pulp_python/tests/functional/api/test_domains.py index 8a37ae14..d5db104c 100644 --- a/pulp_python/tests/functional/api/test_domains.py +++ b/pulp_python/tests/functional/api/test_domains.py @@ -52,7 +52,7 @@ def test_domain_object_creation( python_bindings.RepositoriesPythonApi.create(repo_body, pulp_domain=domain.name) assert e.value.status == 400 assert json.loads(e.value.body) == { - "non_field_errors": [f"Objects must all be apart of the {domain_name} domain."] + "non_field_errors": [f"Objects must all be a part of the {domain_name} domain."] } with pytest.raises(python_bindings.ApiException) as e: @@ -60,7 +60,7 @@ def test_domain_object_creation( python_bindings.RepositoriesPythonApi.sync(repo.pulp_href, sync_body) assert e.value.status == 400 assert json.loads(e.value.body) == { - "non_field_errors": [f"Objects must all be apart of the {domain_name} domain."] + "non_field_errors": [f"Objects must all be a part of the {domain_name} domain."] } with pytest.raises(python_bindings.ApiException) as e: @@ -68,7 +68,7 @@ def test_domain_object_creation( python_bindings.PublicationsPypiApi.create(publish_body) assert e.value.status == 400 assert json.loads(e.value.body) == { - "non_field_errors": ["Objects must all be apart of the default domain."] + "non_field_errors": ["Objects must all be a part of the default domain."] } with pytest.raises(python_bindings.ApiException) as e: @@ -78,7 +78,7 @@ def test_domain_object_creation( python_bindings.DistributionsPypiApi.create(distro_body) assert e.value.status == 400 assert json.loads(e.value.body) == { - "non_field_errors": ["Objects must all be apart of the default domain."] + "non_field_errors": ["Objects must all be a part of the default domain."] } @@ -113,7 +113,7 @@ def test_domain_content_upload( python_bindings.ContentPackagesApi.create(**content_body, pulp_domain=domain.name) assert e.value.status == 400 assert json.loads(e.value.body) == { - "non_field_errors": [f"Objects must all be apart of the {domain.name} domain."] + "non_field_errors": [f"Objects must all be a part of the {domain.name} domain."] } # Now create the same content in the second domain