Skip to content

Commit 91e6513

Browse files
ggaineypatchback[bot]
authored andcommitted
Merge pull request #760 from gerrod3/fix-python-domain-test
Fix domain tests (cherry picked from commit 3541b58)
1 parent 4701286 commit 91e6513

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pulp_python/tests/functional/api/test_domains.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,23 @@ def test_domain_object_creation(
5252
python_bindings.RepositoriesPythonApi.create(repo_body, pulp_domain=domain.name)
5353
assert e.value.status == 400
5454
assert json.loads(e.value.body) == {
55-
"non_field_errors": [f"Objects must all be apart of the {domain_name} domain."]
55+
"non_field_errors": [f"Objects must all be a part of the {domain_name} domain."]
5656
}
5757

5858
with pytest.raises(python_bindings.ApiException) as e:
5959
sync_body = {"remote": default_remote.pulp_href}
6060
python_bindings.RepositoriesPythonApi.sync(repo.pulp_href, sync_body)
6161
assert e.value.status == 400
6262
assert json.loads(e.value.body) == {
63-
"non_field_errors": [f"Objects must all be apart of the {domain_name} domain."]
63+
"non_field_errors": [f"Objects must all be a part of the {domain_name} domain."]
6464
}
6565

6666
with pytest.raises(python_bindings.ApiException) as e:
6767
publish_body = {"repository": repo.pulp_href}
6868
python_bindings.PublicationsPypiApi.create(publish_body)
6969
assert e.value.status == 400
7070
assert json.loads(e.value.body) == {
71-
"non_field_errors": ["Objects must all be apart of the default domain."]
71+
"non_field_errors": ["Objects must all be a part of the default domain."]
7272
}
7373

7474
with pytest.raises(python_bindings.ApiException) as e:
@@ -78,7 +78,7 @@ def test_domain_object_creation(
7878
python_bindings.DistributionsPypiApi.create(distro_body)
7979
assert e.value.status == 400
8080
assert json.loads(e.value.body) == {
81-
"non_field_errors": ["Objects must all be apart of the default domain."]
81+
"non_field_errors": ["Objects must all be a part of the default domain."]
8282
}
8383

8484

@@ -113,7 +113,7 @@ def test_domain_content_upload(
113113
python_bindings.ContentPackagesApi.create(**content_body, pulp_domain=domain.name)
114114
assert e.value.status == 400
115115
assert json.loads(e.value.body) == {
116-
"non_field_errors": [f"Objects must all be apart of the {domain.name} domain."]
116+
"non_field_errors": [f"Objects must all be a part of the {domain.name} domain."]
117117
}
118118

119119
# Now create the same content in the second domain

0 commit comments

Comments
 (0)