Skip to content

Commit

Permalink
all tests complete w/ tox
Browse files Browse the repository at this point in the history
  • Loading branch information
internaut committed Feb 2, 2021
1 parent 58aab89 commit 1c34df5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

here = os.path.abspath(os.path.dirname(__file__))

DEPS_BASE = ['numpy>=1.19.0,<2', 'scipy>=1.6.0,<1.7', 'shapely>=1.7.0,<1.8']
DEPS_BASE = ['numpy>=1.19.0,<2', 'scipy>=1.5.0,<1.7', 'shapely>=1.7.0,<1.8']

DEPS_EXTRA = {
'plotting': ['matplotlib>=3.3.0,<3.4', 'geopandas>=0.8.0,<0.9', 'descartes>=1.1.0,<1.2'],
Expand Down
2 changes: 1 addition & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def _rand_coords_in_shape(area_shape, n_points):


def _check_region_polys(region_polys, region_pts, coords, expected_sum_area,
contains_check_tol=1, area_check_tol=0.01):
contains_check_tol=1, area_check_tol=0.1):
# check validity of each region's polygon, check that all assigned points are inside this polygon and
# check that sum of polygons' area matches `expected_sum_area`
sum_area = 0
Expand Down
5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
# and then run "tox" from this directory.

[tox]
envlist = py36, py37, py38
envlist = py36, py37, py38, py39

[testenv]
deps = .[test]
extras = plotting
commands =
pytest
pytest --mpl-generate-path=.tox/mpl-baseline-images
pytest --mpl
pytest --mpl --mpl-baseline-path=tests/baseline

0 comments on commit 1c34df5

Please sign in to comment.