diff --git a/apprise_api/api/tests/test_stateful_notify.py b/apprise_api/api/tests/test_stateful_notify.py index e4f1a2b..40f125f 100644 --- a/apprise_api/api/tests/test_stateful_notify.py +++ b/apprise_api/api/tests/test_stateful_notify.py @@ -65,7 +65,7 @@ class StatefulNotifyTests(SimpleTestCase): """ # our key to use - key = 'test_stateful' + key = 'test_stateful_01' request = Mock() request.content = b'ok' @@ -77,13 +77,11 @@ class StatefulNotifyTests(SimpleTestCase): # Preare our list of URLs we want to save urls = [ - 'devops=slack://TokenA/TokenB/TokenC', 'pushbullet=pbul://tokendetails', 'general,json=json://hostname', ] # Monkey Patch - N_MGR['slack'].enabled = True N_MGR['pbul'].enabled = True N_MGR['json'].enabled = True @@ -105,7 +103,7 @@ class StatefulNotifyTests(SimpleTestCase): assert response.status_code == 200 entries = re.split(r'[\r*\n]+', response.content.decode('utf-8')) - assert len(entries) == 3 + assert len(entries) == 2 form_data = { 'body': '## test notification', @@ -195,6 +193,7 @@ class StatefulNotifyTests(SimpleTestCase): # Now we do a similar approach as the above except we remove the # configuration from under the application + key = 'test_stateful_02' for _ in range(10): # No content saved to the location yet response = self.client.post('/get/{}'.format(key)) @@ -211,7 +210,7 @@ class StatefulNotifyTests(SimpleTestCase): assert response.status_code == 200 entries = re.split(r'[\r*\n]+', response.content.decode('utf-8')) - assert len(entries) == 3 + assert len(entries) == 2 form_data = { 'body': '## test notification', @@ -306,7 +305,7 @@ class StatefulNotifyTests(SimpleTestCase): 'body': '## test notification', 'format': apprise.NotifyFormat.MARKDOWN, # Comma (OR) - 'tag': 'general, devops', + 'tag': 'pushbullet, json', } form = NotifyForm(data=form_data) diff --git a/requirements.txt b/requirements.txt index 5f78d9f..bdad777 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,7 +10,7 @@ # apprise @ git+https://github.com/caronc/apprise@custom-tag-or-version ## 3. The below grabs our stable version (generally the best choice): -apprise == 1.8.0 +apprise == 1.8.1 ## Apprise API Minimum Requirements django