From 5631f1ee734db9cde46528b71649a56483b49d96 Mon Sep 17 00:00:00 2001 From: Griffin Sullivan Date: Thu, 21 Sep 2023 12:33:44 -0400 Subject: [PATCH] Remove stream specific code from upgrade_list test --- tests/foreman/maintain/test_upgrade.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/foreman/maintain/test_upgrade.py b/tests/foreman/maintain/test_upgrade.py index 9fc02d39799..c9b6044f44c 100644 --- a/tests/foreman/maintain/test_upgrade.py +++ b/tests/foreman/maintain/test_upgrade.py @@ -16,8 +16,6 @@ :Upstream: No """ -import re - import pytest from robottelo.config import settings @@ -66,12 +64,8 @@ def test_positive_satellite_maintain_upgrade_list(sat_maintain): result = sat_maintain.cli.Upgrade.list_versions() assert result.status == 0 assert 'FAIL' not in result.stdout - # If on stream, check there is no version listed - if sat_maintain.is_stream: - assert not bool(re.search(r'\d', result.stdout)) - else: - for ver in versions: - assert ver in result.stdout + for ver in versions: + assert ver in result.stdout @pytest.mark.include_capsule