From ff9eddff0f61fab098e3582c8f7e713973ad916dbe0f44cf746c9a3f1a12f3f5 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Mon, 22 Jan 2024 08:43:39 +0000 Subject: [PATCH] - add pytest-asyncio and psutil to test build requirements - skip test_truesendall_with_dump_from_recording as it requires internet connection OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=76 --- python-mocket.changes | 6 ++++++ python-mocket.spec | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/python-mocket.changes b/python-mocket.changes index 3eb9cab..01adaff 100644 --- a/python-mocket.changes +++ b/python-mocket.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jan 22 08:43:05 UTC 2024 - Sebastian Wagner + +- add pytest-asyncio and psutil to test build requirements +- skip test_truesendall_with_dump_from_recording as it requires internet connection + ------------------------------------------------------------------- Sat Jan 20 19:40:29 UTC 2024 - Dirk Müller diff --git a/python-mocket.spec b/python-mocket.spec index c227008..690e4a4 100644 --- a/python-mocket.spec +++ b/python-mocket.spec @@ -55,6 +55,7 @@ BuildRequires: %{python_module httptools} BuildRequires: %{python_module mocket = %{version}} BuildRequires: %{python_module pook >= 0.2.1} BuildRequires: %{python_module psutil} +BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest} BuildRequires: %{python_module redis} BuildRequires: %{python_module requests} @@ -103,7 +104,7 @@ trap "kill $victims || true" EXIT sleep 2 # Checks the ability to record a real request and response. Not available inside obs. -donttest="test_asyncio_record_replay" +donttest="test_asyncio_record_replay or test_truesendall_with_dump_from_recording" # The reference recording has different headers in this case %if %{pkg_vcmp python311-httpx < 0.23} donttest="$donttest or test_truesendall_with_dump_from_recording"