Skip to content

Commit 91371fd

Browse files
authored
MISC: Test & history updates (#575)
1 parent f5dc53d commit 91371fd

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

docs/history.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Change Log
33

44
2.6.0
55
~~~~~
6-
* WHL: Wheels contain PROJ version 7.0.0
76
* ENH: Added :meth:`pyproj.proj.Proj.get_factors` (issue #503)
87
* ENH: Added type hints (issue #369)
98
* BUG: Don't use CRS classes for defaults in CRS child class init signatures (issue #554)

test/test_proj.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def test_get_factors__2d_input(radians):
440440
assert_almost_equal(
441441
factors.areal_scale, [[1.0, 1.00030468], [1.00121946, 1.00274658]],
442442
)
443-
assert_almost_equal(factors.angular_distortion, [[0, 0], [0.0000012, 0]])
443+
assert_almost_equal(factors.angular_distortion, [[0, 0], [0, 0]], decimal=5)
444444
assert_almost_equal(
445445
factors.meridian_parallel_angle, [[90, 90], [90, 90]],
446446
)

test/test_transformer.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,12 @@ def test_transformer_equals():
591591
assert Transformer.from_crs(28356, 7856) == Transformer.from_crs(28356, 7856)
592592

593593

594-
def test_transformer_not_equals():
595-
assert Transformer.from_crs(28356, 7856) != 22
594+
@pytest.mark.parametrize(
595+
"comparison",
596+
[Transformer.from_pipeline("+proj=pipeline +ellps=GRS80 +step +proj=cart"), 22],
597+
)
598+
def test_transformer_not_equals(comparison):
599+
assert Transformer.from_crs(28356, 7856) != comparison
596600

597601

598602
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)