Skip to content

Commit bfdc5cd

Browse files
Initial public release
1 parent 6395228 commit bfdc5cd

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
log.html
44
output.xml
55
report.html
6+
credentials

src/AppriseLibrary.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import apprise
2525
import logging
2626
import copy
27-
import sys
2827

2928
logging.basicConfig(
3029
level=logging.DEBUG, format="%(asctime)s %(module)s -%(levelname)s- %(message)s"
@@ -43,7 +42,7 @@ class AppriseLibrary:
4342
DEFAULT_BODY = ""
4443
DEFAULT_CLIENTS = []
4544
DEFAULT_ATTACHMENTS = []
46-
DEFAULT_DELIMITER = ','
45+
DEFAULT_DELIMITER = ","
4746

4847
# Class-internal Apprise parameters
4948
__title = None
@@ -319,6 +318,4 @@ def send_apprise_message(
319318

320319

321320
if __name__ == "__main__":
322-
a = AppriseLibrary()
323-
a.set_delimiter(',')
324321
pass

src/send_apprise_message.robot

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This is a simple robot which sends a push message through Apprise
2+
# Author: Joerg Schultze-Lutter
3+
# https://www.github.com/joergschultzelutter/robotframework-apprise
4+
5+
*** Settings ***
6+
Library AppriseLibrary.py
7+
8+
*** Variables ***
9+
@{IMAGE_LIST} https://miro.medium.com/max/553/1*wnMQPTmEsIq0TiRgfX4hig.png https://raw.githubusercontent.com/caronc/apprise/master/apprise/assets/themes/default/apprise-logo.png
10+
${CLIENT} CONFIGURE_THIS_SETTING_WITH_AT_LEAST_ONE_VALID_APPRISE_ACCOUNT
11+
12+
*** Test Cases ***
13+
Send Message Through Apprise
14+
Send Apprise Message title=Robot Framework Apprise Demo body=Connect to Apprise with your Robot Framework Tests! clients=${CLIENT} attachments=${IMAGE_LIST}

0 commit comments

Comments
 (0)