Skip to content

Commit

Permalink
test: Move backported fix tests to LONG_TESTS (fixes #1502) (#1512)
Browse files Browse the repository at this point in the history
  • Loading branch information
XDRAGON2002 authored Jan 12, 2022
1 parent a124bde commit 277f3b9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/test_available_fix.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright (C) 2021 Intel Corporation
# SPDX-License-Identifier: GPL-3.0-or-later

from test.utils import LONG_TESTS

import pytest

from cve_bin_tool.available_fix import AvailableFixReport
Expand Down Expand Up @@ -87,6 +89,9 @@ def arrange_data(self):
)
}

@pytest.mark.skipif(
LONG_TESTS() != 1, reason="Skipping tests to reduce network calls"
)
def test_debian_backport_fix_output(self, caplog: pytest.LogCaptureFixture):
"""Test Backported fix for Debian distros output on console"""

Expand All @@ -99,6 +104,9 @@ def test_debian_backport_fix_output(self, caplog: pytest.LogCaptureFixture):

assert expected_output == [rec.message for rec in caplog.records]

@pytest.mark.skipif(
LONG_TESTS() != 1, reason="Skipping tests to reduce network calls"
)
def test_debian_available_fix_output(self, caplog: pytest.LogCaptureFixture):
"""Test Available fix for Debian distros output on console"""

Expand All @@ -113,6 +121,9 @@ def test_debian_available_fix_output(self, caplog: pytest.LogCaptureFixture):

assert expected_output == [rec.message for rec in caplog.records]

@pytest.mark.skipif(
LONG_TESTS() != 1, reason="Skipping tests to reduce network calls"
)
def test_redhat_available_fix_output(self, caplog: pytest.LogCaptureFixture):
"""Test Available fix for Redhat distros output on console"""

Expand Down

0 comments on commit 277f3b9

Please sign in to comment.