本文整理汇总了Python中output.Output.notifications方法的典型用法代码示例。如果您正苦于以下问题:Python Output.notifications方法的具体用法?Python Output.notifications怎么用?Python Output.notifications使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类output.Output
的用法示例。
在下文中一共展示了Output.notifications方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: work
# 需要导入模块: from output import Output [as 别名]
# 或者: from output.Output import notifications [as 别名]
def work(self, connection):
member = connection.me
try:
output = Output.notifications(member.unread_notifications())
self.show_output_panel(output)
except requests.exceptions.HTTPError as e:
self.show_token_expired_help(e)
raise e
示例2: test_notifications_shows_the_available_information_and_the_amount
# 需要导入模块: from output import Output [as 别名]
# 或者: from output.Output import notifications [as 别名]
def test_notifications_shows_the_available_information_and_the_amount(self):
notification1 = TrelloNotificationMock("addedToBoard", {"board": {"name": "Some board Name"}})
notification2 = TrelloNotificationMock("commentCard", {"card": {"name": "Some card name"}})
notifications = [notification1, notification2]
output = """Total unread: 2
1) Nofitication type: addedToBoard
Board: Some board Name
2) Nofitication type: commentCard
Card: Some card name"""
self.assertEqual(Output.notifications(notifications), output)
示例3: work
# 需要导入模块: from output import Output [as 别名]
# 或者: from output.Output import notifications [as 别名]
def work(self, connection):
member = connection.me
output = Output.notifications(member.unread_notifications())
self.show_output_panel(output)