From e3014c536c9be802bb9e8be1e7f1813fe184579f Mon Sep 17 00:00:00 2001 From: ruuushhh Date: Fri, 20 Oct 2023 11:37:22 +0530 Subject: [PATCH] Gevent changes --- Dockerfile | 2 +- requirements.txt | 5 ++--- tests/conftest.py | 9 --------- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index c85e1f8..0bb053c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Pull python base image -FROM python:3.7.4-slim +FROM python:3.10-slim # install the requirements from the requirements.txt file via git RUN apt-get update && apt-get -y install libpq-dev gcc && apt-get install git -y --no-install-recommends diff --git a/requirements.txt b/requirements.txt index 4e7c4f6..062b476 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,7 +20,7 @@ django-q==1.3.4 dj-database-url==0.5.0 # API server -gevent==22.10.2 +gevent==23.9.1 gunicorn==20.1.0 # Platform SDK @@ -48,5 +48,4 @@ pytest-mock==3.8.2 # Sendgrid for sending emails_selected sendgrid==6.9.7 -sentry-sdk==1.19.1 -gevent==22.10.2 \ No newline at end of file +sentry-sdk==1.19.1 \ No newline at end of file diff --git a/tests/conftest.py b/tests/conftest.py index 940837c..317df7a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -107,15 +107,6 @@ def default_session_fixture(request): ) patched_5.__enter__() - def unpatch(): - patched_1.__exit__() - patched_2.__exit__() - patched_3.__exit__() - patched_4.__exit__() - patched_5.__exit__() - - request.addfinalizer(unpatch) - @pytest.fixture @pytest.mark.django_db(databases=['default'])