From 43f8d29d37939b27fbcb8e771bc5ea99d6211003 Mon Sep 17 00:00:00 2001 From: Georg Krause <mail@georg-krause.net> Date: Sun, 27 Nov 2022 14:09:16 +0100 Subject: [PATCH] chore: Get rid of outdated package and replace its function with builtins --- poetry.lock | 14 +------------- pyproject.toml | 1 - tests/conftest.py | 4 ++-- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/poetry.lock b/poetry.lock index 441c0fd..1955743 100644 --- a/poetry.lock +++ b/poetry.lock @@ -116,14 +116,6 @@ category = "main" optional = false python-versions = ">=3.6" -[[package]] -name = "asynctest" -version = "0.13.0" -description = "Enhance the standard unittest package with features for testing asyncio libraries" -category = "main" -optional = false -python-versions = ">=3.5" - [[package]] name = "attrs" version = "22.1.0" @@ -787,7 +779,7 @@ multidict = ">=4.0" [metadata] lock-version = "1.1" python-versions = ">=3.9,<4.0" -content-hash = "503c38dcb378688a84617c834856593b5a727d0c11d507972306728411918236" +content-hash = "e0260faf480c23c153e0a6bf6d4c2e42d69b9f258cb33586a237abcc8c88c05a" [metadata.files] aiohttp = [ @@ -911,10 +903,6 @@ async-timeout = [ {file = "async-timeout-4.0.2.tar.gz", hash = "sha256:2163e1640ddb52b7a8c80d0a67a08587e5d245cc9c553a74a847056bc2976b15"}, {file = "async_timeout-4.0.2-py3-none-any.whl", hash = "sha256:8ca1e4fcf50d07413d66d1a5e416e42cfdf5851c981d679a09851a6853383b3c"}, ] -asynctest = [ - {file = "asynctest-0.13.0-py3-none-any.whl", hash = "sha256:5da6118a7e6d6b54d83a8f7197769d046922a44d2a99c21382f0a6e4fadae676"}, - {file = "asynctest-0.13.0.tar.gz", hash = "sha256:c27862842d15d83e6a34eb0b2866c323880eb3a75e4485b079ea11748fd77fac"}, -] attrs = [ {file = "attrs-22.1.0-py2.py3-none-any.whl", hash = "sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c"}, {file = "attrs-22.1.0.tar.gz", hash = "sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6"}, diff --git a/pyproject.toml b/pyproject.toml index 12589c7..5a6dd53 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,6 @@ click = "8.1.3" aioredis = "2.0.1" marshmallow = "~=3" semver = "2.13.0" -asynctest = "0.13.0" django-environ = "0.9.0" webargs = "8.2.0" tabulate = "0.9.0" diff --git a/tests/conftest.py b/tests/conftest.py index a83fbfb..a945a2b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -4,7 +4,7 @@ import pytest import psycopg2 import aiohttp from aioresponses import aioresponses -import asynctest +from unittest.mock import AsyncMock from funkwhale_network import db from funkwhale_network import server @@ -64,7 +64,7 @@ async def session(loop): @pytest.fixture async def coroutine_mock(): - return asynctest.CoroutineMock + return AsyncMock @pytest.fixture -- GitLab