From da7f426c60f907905e18221d39a9ce1948344b61 Mon Sep 17 00:00:00 2001 From: Hank Greenburg Date: Tue, 3 Jun 2025 17:26:32 -0700 Subject: [PATCH 1/6] =?UTF-8?q?build:=20Fixing=20tests=20with=20async=20?= =?UTF-8?q?=F0=9F=A5=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pytest.ini | 2 ++ test-requirements.txt | 1 + tox.ini | 1 + 3 files changed, 4 insertions(+) create mode 100644 pytest.ini diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..d280de0 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +asyncio_mode = auto \ No newline at end of file diff --git a/test-requirements.txt b/test-requirements.txt index 36816bf..e16edb3 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -5,4 +5,5 @@ pytest-cov faker aiohttp pytest-aiohttp +pytest-asyncio aioresponses diff --git a/tox.ini b/tox.ini index d90feda..c19ce56 100644 --- a/tox.ini +++ b/tox.ini @@ -18,5 +18,6 @@ deps = -rtest-requirements.txt coverage codecov>=1.4.0 + pytest-asyncio setenv = COVERAGE_FILE=.coverage From a7be6cbfcb95dd9d761d230526f1be1c8013d25e Mon Sep 17 00:00:00 2001 From: Hank Greenburg Date: Tue, 3 Jun 2025 17:41:48 -0700 Subject: [PATCH 2/6] =?UTF-8?q?chore:=20pin=20package=20versions=20for=20t?= =?UTF-8?q?esting=20=F0=9F=8F=B5=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-requirements.txt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index e16edb3..570aea6 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,9 +1,9 @@ -pytest -pytest-flake8 -pytest-isort -pytest-cov -faker -aiohttp -pytest-aiohttp -pytest-asyncio -aioresponses +pytest==8.3.5 +pytest-flake8==1.3.0 +pytest-isort==4.0.0 +pytest-cov==6.1.1 +faker==37.1.0 +aiohttp==3.11.16 +pytest-aiohttp==1.1.0 +pytest-asyncio==0.26.0 +aioresponses==0.7.8 From 50cb9c41a8b9945c9c34a33295ef0c6bdecf88a5 Mon Sep 17 00:00:00 2001 From: Hank Greenburg Date: Tue, 3 Jun 2025 17:46:08 -0700 Subject: [PATCH 3/6] chore: Removed unused file --- pytest.ini | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 pytest.ini diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index d280de0..0000000 --- a/pytest.ini +++ /dev/null @@ -1,2 +0,0 @@ -[pytest] -asyncio_mode = auto \ No newline at end of file From b42b24019a8a407a15c3c1574c00e21095310a30 Mon Sep 17 00:00:00 2001 From: Hank Greenburg Date: Tue, 3 Jun 2025 17:48:50 -0700 Subject: [PATCH 4/6] =?UTF-8?q?chore:=20Pin=20different=20version=20of=20p?= =?UTF-8?q?ytest-flake8=20=F0=9F=98=B5=E2=80=8D=F0=9F=92=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-requirements.txt b/test-requirements.txt index 570aea6..fe924a0 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,5 +1,5 @@ pytest==8.3.5 -pytest-flake8==1.3.0 +pytest-flake8==1.2.2 pytest-isort==4.0.0 pytest-cov==6.1.1 faker==37.1.0 From dcf02179a9cde1506bee43a772ecf4ccd8299f1c Mon Sep 17 00:00:00 2001 From: Hank Greenburg Date: Tue, 3 Jun 2025 17:53:36 -0700 Subject: [PATCH 5/6] UGH, why is the CI not seeing these package versions???????? --- test-requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-requirements.txt b/test-requirements.txt index fe924a0..662440f 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,7 +1,7 @@ pytest==8.3.5 pytest-flake8==1.2.2 pytest-isort==4.0.0 -pytest-cov==6.1.1 +pytest-cov==5.0.0 faker==37.1.0 aiohttp==3.11.16 pytest-aiohttp==1.1.0 From 5f041b25d2810828a5908f4c7fbacf6553ec6c1b Mon Sep 17 00:00:00 2001 From: Hank Greenburg Date: Tue, 3 Jun 2025 17:56:59 -0700 Subject: [PATCH 6/6] Work, I beg of you. --- test-requirements.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 662440f..bdbc671 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,8 +2,8 @@ pytest==8.3.5 pytest-flake8==1.2.2 pytest-isort==4.0.0 pytest-cov==5.0.0 -faker==37.1.0 -aiohttp==3.11.16 -pytest-aiohttp==1.1.0 -pytest-asyncio==0.26.0 -aioresponses==0.7.8 +faker<=37.1.0 +aiohttp<=3.11.16 +pytest-aiohttp<=1.1.0 +pytest-asyncio<=0.26.0 +aioresponses<=0.7.8