Skip to content

Commit

Permalink
add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Penman authored and Richard Penman committed Mar 22, 2024
1 parent 432f236 commit 9af016e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test_reverse_geocode.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import reverse_geocode
import unittest


class TestBuiltwith(unittest.TestCase):
def test_wordpress(self):
coordinates = (-37.81, 144.96), (31.76, 35.21)
results = reverse_geocode.search(coordinates)
self.assertEqual(
results,
[
{"city": "Melbourne", "country_code": "AU", "country": "Australia"},
{"city": "Jerusalem", "country_code": "IL", "country": "Israel"},
],
)


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

0 comments on commit 9af016e

Please sign in to comment.