diff --git a/api/Dockerfile b/api/Dockerfile index 1dcc48ea6a5..dcaa167439f 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -30,7 +30,7 @@ ENV PIP_NO_COLOR=1 # - Create a virtualenv inside `/venv` # - Install PDM to install Python dependencies RUN apt-get update \ - && apt-get install -y python3-dev git \ + && apt-get install -y python3-dev \ && rm -rf /var/lib/apt/lists/* \ && pip install pdm~=2.14 diff --git a/api/pdm.lock b/api/pdm.lock index 6d3a6233d4e..e509aee8378 100644 --- a/api/pdm.lock +++ b/api/pdm.lock @@ -5,7 +5,7 @@ groups = ["default", "dev", "overrides", "test"] strategy = ["cross_platform", "inherit_metadata"] lock_version = "4.4.1" -content_hash = "sha256:7e9f8e52e78990958b094effb69b7b3500def794137e4d75c5d05de015bb99d4" +content_hash = "sha256:91e8af4c323c960f6fa1eac0dd89ffaba079b5e4696f4e58a39b01943a021986" [[package]] name = "adrf" @@ -1255,9 +1255,6 @@ files = [ name = "pook" version = "1.4.3" requires_python = ">=3.8" -git = "https://github.com/h2non/pook.git" -ref = "master" -revision = "a790994e5b0528210ea39d69878de38136d61628" summary = "HTTP traffic mocking and expectations made easy" groups = ["test"] dependencies = [ @@ -1265,6 +1262,10 @@ dependencies = [ "jsonschema>=2.5.1", "xmltodict>=0.11.0", ] +files = [ + {file = "pook-1.4.3-py3-none-any.whl", hash = "sha256:4683a8a9d11fb56901ae15001a5bfb76a1bb960b1a841de1f0ca11c8c2d9eef8"}, + {file = "pook-1.4.3.tar.gz", hash = "sha256:61dbd9f6f9bf4d0bbab4abdf382bf7e8fbaae8561c5de3cd444e7c4be67df651"}, +] [[package]] name = "prompt-toolkit" diff --git a/api/pyproject.toml b/api/pyproject.toml index 708eedb0710..7085f46c2ee 100644 --- a/api/pyproject.toml +++ b/api/pyproject.toml @@ -57,7 +57,7 @@ test = [ "factory-boy >=3.3.0, <4", "fakeredis >=2.21.3, <3", "freezegun >=1.4.0, <2", - "pook @ git+https://github.com/h2non/pook.git@master", + "pook >=1.4.3, <2", "pytest >=7.4.4, <8", "pytest-django >=4.8.0, <5", "pytest-pook>=1.0.0", diff --git a/api/test/unit/utils/test_image_proxy.py b/api/test/unit/utils/test_image_proxy.py index 246468e9e96..19bbbd26518 100644 --- a/api/test/unit/utils/test_image_proxy.py +++ b/api/test/unit/utils/test_image_proxy.py @@ -436,7 +436,7 @@ def test_caches_failures_if_cache_surpasses_tolerance(mock_image_data, settings, ) .header("User-Agent", UA_HEADER) .header("Accept", "image/*") - .times(tolerance) + .times(tolerance + 1) .reply(401) .body(MOCK_BODY) )