Skip to content

Commit

Permalink
Tests: Improve diff output at "test_geoshape_type_default"
Browse files Browse the repository at this point in the history
This test has an anomaly on Windows where the longitude
36.10457754779138 will be returned as 36.104577547791386,
i.e. with one more precision digit.

While investigating this, I found the diff output for comparing
before/after just the other way round than what I would have expected.
  • Loading branch information
amotl committed Feb 10, 2024
1 parent 87f9e5b commit a34b07e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_insert_fake_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ def test_geopoint_type_default(self):

def test_geoshape_type_default(self):
provider = self.f.provider_for_column(Column('area', 'geo_shape', None))
self.assertEqual(provider(),
'POLYGON (( '
self.assertEqual('POLYGON (( '
'-132.47048275355667 44.147296981090086, '
'-131.2679223792111 42.09369742374501, '
'-132.14018682738413 37.17894586552094, '
'-133.04540290479406 36.10457754779138, '
'-142.31051949147854 46.75961787621673, '
'-132.47048275355667 44.147296981090086 '
'))')
'))',
provider())

def test_invalid_provider_for_column(self):
msg = 'No fake provider found for column "x" with type "y"'
Expand Down

0 comments on commit a34b07e

Please sign in to comment.