Skip to content

Commit 5e296fa

Browse files
committed
fix unittests
1 parent 83e37f3 commit 5e296fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ def test_function_app_basic(self):
99
dd = datetime.strptime("2024-10-13T01:05:03", "%Y-%m-%dT%H:%M:%S")
1010
req_body = {"callsign":"KI7HSG", "source": "pota", "frequency": "14.074", "mode": "FT8", "wwffRef":"US-0052"}
1111
content = spotbot.create_content(req_body, dd)
12-
expected = {'content': 'KI7HSG | [pota](https://api.pota.app/spot/comments/KI7HSG/US-0052) | freq: 14.074 | mode: FT8 | loc: US-0052 | 01:05', 'flags': 4}
13-
self.assertDictEqual(content, expected)
12+
expected = 'KI7HSG | [pota](https://api.pota.app/spot/comments/KI7HSG/US-0052) | freq: 14.074 | mode: FT8 | loc: US-0052 | 01:05'
13+
self.assertEqual(content, expected)
1414

1515
def test_function_app(self):
1616
dd = datetime.strptime("2024-10-13T01:05:03", "%Y-%m-%dT%H:%M:%S")
1717
req_body = {"callsign":"KI7HSG", "source": "sotawatch", "frequency": "14.074", "mode": "FT8", "summitRef": "ABCD"}
1818
content = spotbot.create_content(req_body, dd)
19-
expected = {'content': 'KI7HSG | [sotawatch](https://sotl.as/activators/KI7HSG) | freq: 14.074 | mode: FT8 | loc: ABCD | 01:05', 'flags': 4}
20-
self.assertDictEqual(content, expected)
19+
expected = 'KI7HSG | [sotawatch](https://sotl.as/activators/KI7HSG) | freq: 14.074 | mode: FT8 | loc: ABCD | 01:05'
20+
self.assertEqual(content, expected)
2121

2222
if __name__ == '__main__':
2323
unittest.main()

0 commit comments

Comments
 (0)