From 72d42a1ac93a8db7bde2906d304494f3584c172a Mon Sep 17 00:00:00 2001 From: "pixeebot[bot]" <104101892+pixeebot[bot]@users.noreply.github.com> Date: Tue, 12 Mar 2024 14:32:47 +0000 Subject: [PATCH] Hardening suggestions for codemodder-python / pydantic-codetf (#358) Add timeout to `requests` calls Co-authored-by: pixeebot[bot] <104101892+pixeebot[bot]@users.noreply.github.com> --- integration_tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration_tests/conftest.py b/integration_tests/conftest.py index 3f4f5fb2..077e711d 100644 --- a/integration_tests/conftest.py +++ b/integration_tests/conftest.py @@ -7,5 +7,5 @@ @pytest.fixture(scope="module") def codetf_schema(): schema_path = "https://raw.githubusercontent.com/pixee/codemodder-specs/main/codetf.schema.json" - response = requests.get(schema_path) + response = requests.get(schema_path, timeout=60) yield json.loads(response.text)