def test_ingest_version_overwrite(): ingestor = Ingestor() ingestor.csv(f"{test_root_path}/data/nypl_libraries.yml", version="test") assert os.path.isfile(".library/datasets/nypl_libraries/test/nypl_libraries.csv")
def test_ingest_csv(): ingestor = Ingestor() ingestor.csv(f"{test_root_path}/data/nypl_libraries.yml", compress=True) assert os.path.isfile( ".library/datasets/nypl_libraries/20210122/nypl_libraries.csv" )
def test_uscourts_courts(): ingestor = Ingestor() ingestor.csv(f"{template_path}/uscourts_courts.yml", version="test") assert os.path.isfile( ".library/datasets/uscourts_courts/test/uscourts_courts.csv")
def test_bpl_libraries(): ingestor = Ingestor() ingestor.csv(f"{template_path}/bpl_libraries.yml", version="test") assert os.path.isfile( ".library/datasets/bpl_libraries/test/bpl_libraries.csv")
def test_dpr_capitalprojects(): ingestor = Ingestor() ingestor.csv(f"{template_path}/dpr_capitalprojects.yml", version="test") assert os.path.isfile( ".library/datasets/dpr_capitalprojects/test/dpr_capitalprojects.csv")