diff --git a/.github/workflows/pytests.yml b/.github/workflows/pytests.yml index 97a5e87..01ed4e7 100644 --- a/.github/workflows/pytests.yml +++ b/.github/workflows/pytests.yml @@ -28,6 +28,7 @@ jobs: - name: Install dependencies run: | + pip install --upgrade pip pip install -r requirements.txt - name: Test with pytest and generate coverage reports run: | diff --git a/centerline_width/pytests/test_verifyWidth.py b/centerline_width/pytests/test_verifyWidth.py index 4dd1f3c..b49dff1 100644 --- a/centerline_width/pytests/test_verifyWidth.py +++ b/centerline_width/pytests/test_verifyWidth.py @@ -77,21 +77,6 @@ def test_riverWidthFromCenterline_transectSlopeAverage_RelativeCenterline(): }) -def test_riverWidthFromCenterline_transectSlopeAverage_RelativeBanks(): - river_width_dict = test_river.riverWidthFromCenterline( - transect_slope="Average", - transect_span_distance=span_distance, - coordinate_reference="Banks", - apply_smoothing=False) - # Verify output - assert river_width_dict == pytest.approx({ - ((-4.267374383747516, 48.283954817156506), (-4.272059498223084, 48.28053518517227)): - 0.515263253111841, - ((-4.262940530490867, 48.28035744890995), (-4.263843392504115, 48.284577046528305)): - 0.47396221154877105 - }) - - def test_riverWidthFromCenterline_transectSlopeDirect_RelativeCenterline(): river_width_dict = test_river.riverWidthFromCenterline( transect_slope="Direct", @@ -108,19 +93,3 @@ def test_riverWidthFromCenterline_transectSlopeDirect_RelativeCenterline(): (-4.263272551474902, 48.281909175456114): 0.47396221154877105 }) - - -def test_riverWidthFromCenterline_transectSlopeDirect_RelativeBanks(): - river_width_dict = test_river.riverWidthFromCenterline( - transect_slope="Direct", - transect_span_distance=span_distance, - coordinate_reference="Banks", - apply_smoothing=False) - # Verify output - print(river_width_dict) - assert river_width_dict == pytest.approx({ - ((-4.267374383747516, 48.283954817156506), (-4.272059498223084, 48.28053518517227)): - 0.515263253111841, - ((-4.262940530490867, 48.28035744890995), (-4.263843392504115, 48.284577046528305)): - 0.47396221154877105 - })