From 135dd5cb048416a39a84c5126679b3e848fabfc6 Mon Sep 17 00:00:00 2001 From: Taylor Steinberg Date: Wed, 18 Nov 2026 13:42:50 -0500 Subject: [PATCH] test: isolate bundle deployment from version checks --- tests/test_main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_main.py b/tests/test_main.py index fd2f4d85..228242b1 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -1223,7 +1223,9 @@ def test_every_deploy_subcommand_accepts_quiet(self): assert missing == [], f"deploy subcommands missing --quiet: {missing}" @httpretty.activate(verbose=True, allow_net_connect=False) - def test_deploy_bundle(self, caplog): + def test_deploy_bundle(self, caplog, monkeypatch): + # Keep the background PyPI request out of HTTPretty's socket mocks. + monkeypatch.setenv("RSCONNECT_DISABLE_VERSION_CHECK", "1") # Deploying a downloaded bundle should upload the tarball as-is (no # re-bundling) and run the standard Connect deploy flow. original_api_key_value = os.environ.pop("CONNECT_API_KEY", None)