Skip to content

Commit

Permalink
one more test, coverage to 9%
Browse files Browse the repository at this point in the history
  • Loading branch information
elbeejay committed Mar 27, 2024
1 parent d929bbd commit 0b2aa66
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test_calculate_od_raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import geopandas as gpd
from shapely.geometry import Point
import numpy as np
import pandas as pd


def mocked_pandana_snap(G, point_gdf):
Expand Down Expand Up @@ -86,4 +87,10 @@ def test_calculateOD_csv(tmp_path):

def test_calculate_gravity():
"""Test the calculate_gravity function."""
pass
# make inputs
od = np.array([[0, 1], [1, 0]])
# Run the function
result = calculate_od_raw.calculate_gravity(od)
# Check the result
assert isinstance(result, pd.DataFrame)
assert result.shape == (2, 9)

0 comments on commit 0b2aa66

Please sign in to comment.