Blame SOURCES/0003-tests-mark-more-network-tests.patch
|
|
541142 |
From 4cc2a5e9eb29eca9243c431b4b7e177644929bf1 Mon Sep 17 00:00:00 2001
|
|
|
541142 |
From: Carl George <carlwgeorge@gmail.com>
|
|
|
541142 |
Date: Thu, 29 Aug 2024 23:10:15 -0500
|
|
|
541142 |
Subject: [PATCH 3/3] tests: mark more network tests
|
|
|
541142 |
|
|
|
541142 |
The tests test_build and test_verbose_output both fail when run without
|
|
|
541142 |
a network connection, so mark them appropriately.
|
|
|
541142 |
|
|
|
541142 |
(cherry picked from commit dab1d5d78f3b37f9690a5cd280855eac6895c99d)
|
|
|
541142 |
---
|
|
|
541142 |
tests/test_integration.py | 1 +
|
|
|
541142 |
tests/test_main.py | 1 +
|
|
|
541142 |
2 files changed, 2 insertions(+)
|
|
|
541142 |
|
|
|
541142 |
diff --git a/tests/test_integration.py b/tests/test_integration.py
|
|
|
541142 |
index 8e070a5..a0c28bb 100644
|
|
|
541142 |
--- a/tests/test_integration.py
|
|
|
541142 |
+++ b/tests/test_integration.py
|
|
|
541142 |
@@ -68,6 +68,7 @@ def get_project(name, tmp_path):
|
|
|
541142 |
return dest / f'{name}-{version}'
|
|
|
541142 |
|
|
|
541142 |
|
|
|
541142 |
+@pytest.mark.network
|
|
|
541142 |
@pytest.mark.parametrize(
|
|
|
541142 |
'call',
|
|
|
541142 |
[
|
|
|
541142 |
diff --git a/tests/test_main.py b/tests/test_main.py
|
|
|
541142 |
index 8e1eb7e..c8d5732 100644
|
|
|
541142 |
--- a/tests/test_main.py
|
|
|
541142 |
+++ b/tests/test_main.py
|
|
|
541142 |
@@ -442,6 +442,7 @@ ERROR Failed to create venv. Maybe try installing virtualenv.
|
|
|
541142 |
)
|
|
|
541142 |
|
|
|
541142 |
|
|
|
541142 |
+@pytest.mark.network
|
|
|
541142 |
@pytest.mark.parametrize('verbosity', [0, 1])
|
|
|
541142 |
def test_verbose_output(
|
|
|
541142 |
capsys: pytest.CaptureFixture,
|
|
|
541142 |
--
|
|
|
541142 |
2.46.0
|
|
|
541142 |
|