mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-28 14:11:17 -07:00
hotfix wrong score tile csv path (#671)
* hotfix wrong score tile csv path * updating test * forcing update * triggering action
This commit is contained in:
parent
7d13be7651
commit
879cb7d022
4 changed files with 10 additions and 7 deletions
|
@ -31,9 +31,12 @@ FULL_SCORE_CSV_FULL_PLUS_COUNTIES_FILE_PATH = (
|
|||
DATA_SCORE_CSV_FULL_DIR / "usa_counties.csv"
|
||||
)
|
||||
|
||||
## Score Tile paths
|
||||
# Score Tile CSV source path
|
||||
DATA_SCORE_CSV_TILES_PATH = DATA_SCORE_CSV_DIR / "tiles"
|
||||
DATA_SCORE_CSV_TILES_FILE_PATH = DATA_SCORE_CSV_TILES_PATH / "usa.csv"
|
||||
|
||||
## Tile path
|
||||
DATA_SCORE_TILES_DIR = DATA_SCORE_DIR / "tiles"
|
||||
DATA_SCORE_TILES_FILE_PATH = DATA_SCORE_TILES_DIR / "usa.csv"
|
||||
|
||||
# Downloadable paths
|
||||
SCORE_DOWNLOADABLE_DIR = DATA_SCORE_DIR / "downloadable"
|
||||
|
|
|
@ -201,7 +201,7 @@ class PostScoreETL(ExtractTransformLoad):
|
|||
]
|
||||
|
||||
def transform(self) -> None:
|
||||
logger.info("Transforming data sources for Score + County CSV")
|
||||
logger.info("Transforming data sources for Score + County CSVs")
|
||||
|
||||
transformed_counties = self._transform_counties(self.input_counties_df)
|
||||
transformed_states = self._transform_states(self.input_states_df)
|
||||
|
@ -267,7 +267,7 @@ class PostScoreETL(ExtractTransformLoad):
|
|||
constants.FULL_SCORE_CSV_FULL_PLUS_COUNTIES_FILE_PATH,
|
||||
)
|
||||
self._load_tile_csv(
|
||||
self.output_score_tiles_df, constants.DATA_SCORE_TILES_FILE_PATH
|
||||
self.output_score_tiles_df, constants.DATA_SCORE_CSV_TILES_FILE_PATH
|
||||
)
|
||||
self._load_downloadable_zip(
|
||||
self.output_downloadable_df, constants.SCORE_DOWNLOADABLE_DIR
|
||||
|
|
|
@ -112,9 +112,9 @@ def test_load_score_csv(etl, score_data_expected):
|
|||
def test_load_tile_csv(etl, tile_data_expected):
|
||||
reload(constants)
|
||||
etl._load_score_csv(
|
||||
tile_data_expected, constants.DATA_SCORE_TILES_FILE_PATH
|
||||
tile_data_expected, constants.DATA_SCORE_CSV_TILES_FILE_PATH
|
||||
)
|
||||
assert constants.DATA_SCORE_TILES_FILE_PATH.is_file()
|
||||
assert constants.DATA_SCORE_CSV_TILES_FILE_PATH.is_file()
|
||||
|
||||
|
||||
def test_load_downloadable_zip(etl, downloadable_data_expected):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue