Skip to content

Commit

Permalink
updated rpm patch
Browse files Browse the repository at this point in the history
  • Loading branch information
caronc committed Dec 22, 2023
1 parent ff0f57a commit 5d09bc1
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions packaging/redhat/apprise-pytest-session_mocker-removal.patch
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 5d09bc1

Please sign in to comment.