Skip to content

Commit cd02417

Browse files
committed
Test fix.
1 parent f609d08 commit cd02417

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/test_cli.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ def test_standard(tmpdir):
2727
if buf['geometry']['type'] == 'Polygon':
2828
e_x, e_y = e_pair
2929
a_x, a_y = a_pair
30-
assert round(e_x, 7) == round(a_x, 7)
31-
assert round(e_y, 7) == round(a_y, 7)
30+
assert round(e_x, 3) == round(a_x, 3)
31+
assert round(e_y, 3) == round(a_y, 3)
3232

3333

3434
def test_distance_field(tmpdir):
@@ -50,8 +50,8 @@ def test_distance_field(tmpdir):
5050
if buf['geometry']['type'] == 'Polygon':
5151
e_x, e_y = e_pair
5252
a_x, a_y = a_pair
53-
assert round(e_x, 7) == round(a_x, 7)
54-
assert round(e_y, 7) == round(a_y, 7)
53+
assert round(e_x, 3) == round(a_x, 3)
54+
assert round(e_y, 3) == round(a_y, 3)
5555

5656

5757
def test_buf_crs(tmpdir):
@@ -78,8 +78,8 @@ def test_buf_crs(tmpdir):
7878
if buf['geometry']['type'] == 'Polygon':
7979
e_x, e_y = e_pair
8080
a_x, a_y = a_pair
81-
assert round(e_x, 7) == round(a_x, 7)
82-
assert round(e_y, 7) == round(a_y, 7)
81+
assert round(e_x, 3) == round(a_x, 3)
82+
assert round(e_y, 3) == round(a_y, 3)
8383

8484

8585
def test_buf_dst_crs(tmpdir):
@@ -107,5 +107,5 @@ def test_buf_dst_crs(tmpdir):
107107
if buf['geometry']['type'] == 'Polygon':
108108
e_x, e_y = e_pair
109109
a_x, a_y = a_pair
110-
assert round(e_x, 7) == round(a_x, 7)
111-
assert round(e_y, 7) == round(a_y, 7)
110+
assert round(e_x, 3) == round(a_x, 3)
111+
assert round(e_y, 3) == round(a_y, 3)

0 commit comments

Comments
 (0)