Skip to content

Commit

Permalink
initial fixes tests for tests from #131 (#132)
Browse files Browse the repository at this point in the history
* fix test_read_original--() failures

* fix test_read_no_degree_2--() failures

* fix test_make_grid--() failure

* fix TestContinuity::test_basic failure
  • Loading branch information
jGaboardi authored Aug 1, 2024
1 parent 2035056 commit c39544b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_basic(self):
]

known_counts_coins_end = pandas.DataFrame(
{"coins_end": [True, False], "count": [15306, 13291]}
{"coins_end": [True, False], "count": [8570, 7984]}
)
observed_counts_coins_end = (
roads["coins_end"].value_counts().to_frame().reset_index()
Expand Down
6 changes: 3 additions & 3 deletions core/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def test_read_sample_data():


cities = list(core.utils.city_fua.keys())
osm_records = [86_101, 109_976, 110_074, 88_746, 105_174, 110_211, 107_551]
xnd2_records = [46_179, 40_177, 23_127, 32_020, 28_597, 46_362, 35_869]
osm_records = [78_908, 60_364, 79_317, 84_819, 79_907, 50_917, 92_667]
xnd2_records = [43_233, 12_439, 16_302, 30_552, 16_554, 13_468, 29_314]
man_records = [41_481, 35_650, 20_347, 30_647, 25_133, 43_955, numpy.nan]


Expand Down Expand Up @@ -100,7 +100,7 @@ def test_make_grid():
observed = core.utils.make_grid(fua, resolution, pytest.epsg_4326)

assert observed.crs == pytest.epsg_4326
known_records = 294
known_records = 285
assert observed.shape[0] == known_records
known_bounds = [
174.6123711149229,
Expand Down

0 comments on commit c39544b

Please sign in to comment.