From ee9f977d7393c5c5cc88aa2e770e049786b87f9d Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Thu, 21 Apr 2022 08:44:16 +0300 Subject: Run formatting --- alarmpy/tests/test_alarmpy.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/alarmpy/tests/test_alarmpy.py b/alarmpy/tests/test_alarmpy.py index 0b14448..b637343 100644 --- a/alarmpy/tests/test_alarmpy.py +++ b/alarmpy/tests/test_alarmpy.py @@ -4,9 +4,13 @@ from ..alarmpy import Alarm def test_parse(): alarm = Alarm() res = b'\xef\xbb\xbf{\r\n "id": "132949694460000000",\r\n "cat": "1",\r\n "title": "\xd7\x99\xd7\xa8\xd7\x99 \xd7\x98\xd7\x99\xd7\x9c\xd7\x99\xd7\x9d \xd7\x95\xd7\xa8\xd7\xa7\xd7\x98\xd7\x95\xd7\xaa",\r\n "data": [\r\n "\xd7\xa9\xd7\x93\xd7\xa8\xd7\x95\xd7\xaa, \xd7\x90\xd7\x99\xd7\x91\xd7\x99\xd7\x9d, \xd7\xa0\xd7\x99\xd7\xa8 \xd7\xa2\xd7\x9d",\r\n "\xd7\x90\xd7\xa8\xd7\x96",\r\n "\xd7\x9e\xd7\xa4\xd7\x9c\xd7\xa1\xd7\x99\xd7\x9d",\r\n "\xd7\x9e\xd7\x98\xd7\x95\xd7\x95\xd7\x97 \xd7\xa0\xd7\x99\xd7\xa8 \xd7\xa2\xd7\x9d"\r\n ],\r\n "desc": "\xd7\x94\xd7\x99\xd7\x9b\xd7\xa0\xd7\xa1\xd7\x95 \xd7\x9c\xd7\x9e\xd7\xa8\xd7\x97\xd7\x91 \xd7\x94\xd7\x9e\xd7\x95\xd7\x92\xd7\x9f"\r\n}\r\n' - assert alarm.parse(res) == (['שדרות, איבים, ניר עם', 'ארז', 'מפלסים', 'מטווח ניר עם'], '132949694460000000') + assert alarm.parse(res) == ( + ["שדרות, איבים, ניר עם", "ארז", "מפלסים", "מטווח ניר עם"], + "132949694460000000", + ) + def test_empty_parse(): alarm = Alarm() assert alarm.parse(None) == ([], None) - assert alarm.parse(b"") == ([], None) \ No newline at end of file + assert alarm.parse(b"") == ([], None) -- cgit v1.3.1