diff --git a/packaging/redhat/apprise-pytest-session_mocker-removal.patch b/packaging/redhat/apprise-pytest-session_mocker-removal.patch index 03bcc2b28..cd43635b4 100644 --- a/packaging/redhat/apprise-pytest-session_mocker-removal.patch +++ b/packaging/redhat/apprise-pytest-session_mocker-removal.patch @@ -1,19 +1,20 @@ -diff -Naur apprise-1.2.0/test/conftest.py apprise-1.2.0.patched/test/conftest.py ---- apprise-1.2.0/test/conftest.py 2022-11-02 14:00:13.000000000 -0400 -+++ apprise-1.2.0.patched/test/conftest.py 2022-11-15 10:28:23.793969418 -0500 -@@ -32,12 +32,12 @@ - sys.path.append(os.path.join(os.path.dirname(__file__), 'helpers')) +diff -Naur apprise-1.6.0/test/conftest.py apprise-1.6.0.patched/test/conftest.py +--- apprise-1.6.0/test/conftest.py 2023-12-22 15:46:50.000000000 -0500 ++++ apprise-1.6.0.patched/test/conftest.py 2023-12-22 17:24:28.229650303 -0500 +@@ -39,8 +39,8 @@ + N_MGR = NotificationManager() --@pytest.fixture(scope="session", autouse=True) +-@pytest.fixture(scope="function", autouse=True) -def no_throttling_everywhere(session_mocker): +@pytest.fixture(autouse=True) +def no_throttling_everywhere(mocker): """ A pytest session fixture which disables throttling on all notifiers. It is automatically enabled. - """ - for notifier in NOTIFY_MODULE_MAP.values(): - plugin = notifier["plugin"] +@@ -49,4 +49,4 @@ + N_MGR.unload_modules() + + for plugin in N_MGR.plugins(): - session_mocker.patch.object(plugin, "request_rate_per_sec", 0) + mocker.patch.object(plugin, "request_rate_per_sec", 0)