Skip to content

Commit

Permalink
update to help with el9 unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
caronc committed Sep 14, 2024
1 parent 54c241e commit f9ae7a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion apprise/plugins/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,9 @@ def _fetch(self, path, payload=None, params={}, attachment=None,
# Decrement our throttle retry count
retries -= 1

self.logger.debug('Matrix POST URL: %s (cert_verify=%r)' % (
self.logger.debug('Matrix %s URL: %s (cert_verify=%r)' % (
'POST' if method == 'POST' else (
requests.put if method == 'PUT' else 'GET'),
url, self.verify_certificate,
))
self.logger.debug('Matrix Payload: %s' % str(payload))
Expand Down
4 changes: 2 additions & 2 deletions test/test_plugin_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -1289,9 +1289,9 @@ def test_plugin_matrix_attachments_api_v2(mock_post, mock_get):
# Force a object removal (thus a logout call)
del obj

# Instantiate our object
# Instantiate our object (no discovery required)
obj = Apprise.instantiate(
'matrixs://user:pass@localhost/#general?v=2&image=y')
'matrixs://user:pass@localhost/#general?v=2&discovery=no&image=y')

# Reset our object
mock_post.reset_mock()
Expand Down

0 comments on commit f9ae7a9

Please sign in to comment.