Skip to content

Commit

Permalink
MISC: Test & history updates (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 authored Mar 13, 2020
1 parent f5dc53d commit 91371fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion docs/history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Change Log

2.6.0
~~~~~
* WHL: Wheels contain PROJ version 7.0.0
* ENH: Added :meth:`pyproj.proj.Proj.get_factors` (issue #503)
* ENH: Added type hints (issue #369)
* BUG: Don't use CRS classes for defaults in CRS child class init signatures (issue #554)
Expand Down
2 changes: 1 addition & 1 deletion test/test_proj.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def test_get_factors__2d_input(radians):
assert_almost_equal(
factors.areal_scale, [[1.0, 1.00030468], [1.00121946, 1.00274658]],
)
assert_almost_equal(factors.angular_distortion, [[0, 0], [0.0000012, 0]])
assert_almost_equal(factors.angular_distortion, [[0, 0], [0, 0]], decimal=5)
assert_almost_equal(
factors.meridian_parallel_angle, [[90, 90], [90, 90]],
)
Expand Down
8 changes: 6 additions & 2 deletions test/test_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,8 +591,12 @@ def test_transformer_equals():
assert Transformer.from_crs(28356, 7856) == Transformer.from_crs(28356, 7856)


def test_transformer_not_equals():
assert Transformer.from_crs(28356, 7856) != 22
@pytest.mark.parametrize(
"comparison",
[Transformer.from_pipeline("+proj=pipeline +ellps=GRS80 +step +proj=cart"), 22],
)
def test_transformer_not_equals(comparison):
assert Transformer.from_crs(28356, 7856) != comparison


@pytest.mark.parametrize(
Expand Down

0 comments on commit 91371fd

Please sign in to comment.