Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR #1744/d5d149ec backport][2.21] Do not assert on a specific error message #1745

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions pulp_container/tests/functional/api/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,9 @@ def test_sync_reclaim_resync(

@pytest.mark.parallel
def test_sync_invalid_url(synced_container_repository_factory):
with pytest.raises(PulpTaskError) as ctx:
with pytest.raises(PulpTaskError):
synced_container_repository_factory(url="http://i-am-an-invalid-url.com/invalid/")

assert "[Name or service not known]" in ctx.value.task.error["description"]


@pytest.mark.parallel
@pytest.mark.parametrize(
Expand Down