Skip to content

Commit

Permalink
adds isclose checks to flaky geotests
Browse files Browse the repository at this point in the history
- add geochecks to conftest
- uses isclose to check float values
- renamed check to assert_geo_is_close
- update_assert_is_geo_tests
- format with black

Signed-off-by: Jay Miller <kjaymiller@gmail.com>
  • Loading branch information
kjaymiller committed Aug 5, 2024
1 parent 70fd146 commit 3803b5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
assert_geo_is_close,
assert_resp_response,
assert_resp_response_in,
assert_resp_response_isclose,
assert_geo_is_close,
is_resp2_connection,
skip_if_server_version_gte,
skip_if_server_version_lt,
Expand Down Expand Up @@ -3952,6 +3954,7 @@ def test_georadius_store_dist(self, r):
@skip_unless_arch_bits(64)
@skip_if_server_version_lt("3.2.0")
def test_georadiusmember(self, r):
"""Checks that r.georadiusbymember can return point, distance, and coordinate data"""
values = (2.1909389952632, 41.433791470673, "place1") + (
2.1873744593677,
41.406342043777,
Expand Down

0 comments on commit 3803b5f

Please sign in to comment.