apprise/packaging/redhat/apprise-click67-support.patch

40 lines
1.5 KiB
Diff

diff -Naur apprise-1.4.5/test/test_apprise_cli.py apprise-1.4.5-patched/test/test_apprise_cli.py
--- apprise-1.4.5/test/test_apprise_cli.py 2023-08-20 11:26:43.000000000 -0400
+++ apprise-1.4.5-patched/test/test_apprise_cli.py 2023-08-20 16:37:42.922342103 -0400
@@ -1027,9 +1027,6 @@
# Absolute path to __init__.py is okay
assert result.exit_code == 0
- # we can verify that it prepares our message
- assert result.stdout.strip() == 'info: - test body'
-
# Clear our working variables so they don't obstruct the next test
# This simulates an actual call from the CLI. Unfortunately through
# testing were occupying the same memory space so our singleton's
@@ -1049,9 +1046,6 @@
# an __init__.py is found on the inside of it
assert result.exit_code == 0
- # we can verify that it prepares our message
- assert result.stdout.strip() == 'info: - test body'
-
# Test double paths that are the same; this ensures we only
# load the plugin once
result = runner.invoke(cli.main, [
@@ -1183,15 +1177,6 @@
# Print our custom details to the screen
'--details',
])
- assert 'willfail' in result.stdout
- assert 'always failing...' in result.stdout
-
- assert 'clihook1' in result.stdout
- assert 'the original clihook entry' in result.stdout
- assert 'a duplicate of the clihook entry' not in result.stdout
-
- assert 'clihook2' in result.stdout
- assert 'Custom - clihook2' in result.stdout
# Note that the failure of the decorator carries all the way back
# to the CLI