Skip to content

Commit

Permalink
Add test for the attachments URI
Browse files Browse the repository at this point in the history
  • Loading branch information
Era-Dorta committed Dec 20, 2024
1 parent e152306 commit ebfabb3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ def test_send_uri(self):
actual_uri = self.signal_api._send_rest_uri()
self.assertEqual(actual_uri, expected_uri)

def test_attachment_rest_uri(self):
expected_uri = f"http://{self.signal_service}/v1/attachments"
actual_uri = self.signal_api._attachment_rest_uri()
self.assertEqual(actual_uri, expected_uri)


if __name__ == "__main__":
unittest.main()

0 comments on commit ebfabb3

Please sign in to comment.