mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-28 18:11:17 -07:00
Pipeline PR workflow now runs code quality checks
This commit is contained in:
parent
6213ed1ac4
commit
95246c9df0
6 changed files with 51 additions and 76 deletions
|
@ -132,7 +132,9 @@ def tile_data_expected():
|
|||
|
||||
@pytest.fixture()
|
||||
def create_tile_score_data_input():
|
||||
return pd.read_pickle(pytest.SNAPSHOT_DIR / "create_tile_score_data_input.pkl")
|
||||
return pd.read_pickle(
|
||||
pytest.SNAPSHOT_DIR / "create_tile_score_data_input.pkl"
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
|
|
|
@ -83,7 +83,9 @@ def test_create_score_data(
|
|||
)
|
||||
|
||||
|
||||
def test_create_tile_data(etl, create_tile_score_data_input, create_tile_data_expected):
|
||||
def test_create_tile_data(
|
||||
etl, create_tile_score_data_input, create_tile_data_expected
|
||||
):
|
||||
output_tiles_df_actual = etl._create_tile_data(create_tile_score_data_input)
|
||||
pdt.assert_frame_equal(
|
||||
output_tiles_df_actual,
|
||||
|
@ -158,8 +160,10 @@ def test_load_downloadable_zip(etl, monkeypatch, score_data_expected):
|
|||
def test_create_tract_search_data(census_geojson_sample_data: gpd.GeoDataFrame):
|
||||
# Sanity check
|
||||
assert len(census_geojson_sample_data) > 0
|
||||
|
||||
result = PostScoreETL()._create_tract_search_data(census_geojson_sample_data)
|
||||
|
||||
result = PostScoreETL()._create_tract_search_data(
|
||||
census_geojson_sample_data
|
||||
)
|
||||
assert isinstance(result, pd.DataFrame)
|
||||
assert not result.columns.empty
|
||||
columns = ["GEOID10", "INTPTLAT10", "INTPTLON10"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue