Blob Blame History Raw
From 4cc2a5e9eb29eca9243c431b4b7e177644929bf1 Mon Sep 17 00:00:00 2001
From: Carl George <carlwgeorge@gmail.com>
Date: Thu, 29 Aug 2024 23:10:15 -0500
Subject: [PATCH 3/3] tests: mark more network tests

The tests test_build and test_verbose_output both fail when run without
a network connection, so mark them appropriately.

(cherry picked from commit dab1d5d78f3b37f9690a5cd280855eac6895c99d)
---
 tests/test_integration.py | 1 +
 tests/test_main.py        | 1 +
 2 files changed, 2 insertions(+)

diff --git a/tests/test_integration.py b/tests/test_integration.py
index 8e070a5..a0c28bb 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -68,6 +68,7 @@ def get_project(name, tmp_path):
     return dest / f'{name}-{version}'
 
 
+@pytest.mark.network
 @pytest.mark.parametrize(
     'call',
     [
diff --git a/tests/test_main.py b/tests/test_main.py
index 8e1eb7e..c8d5732 100644
--- a/tests/test_main.py
+++ b/tests/test_main.py
@@ -442,6 +442,7 @@ ERROR Failed to create venv. Maybe try installing virtualenv.
     )
 
 
+@pytest.mark.network
 @pytest.mark.parametrize('verbosity', [0, 1])
 def test_verbose_output(
     capsys: pytest.CaptureFixture,
-- 
2.46.0