-
-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
9 deletions.
There are no files selected for viewing
19 changes: 10 additions & 9 deletions
19
packaging/redhat/apprise-pytest-session_mocker-removal.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |