Ejemplo n.º 1
0
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")
Ejemplo n.º 2
0
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"
    )
Ejemplo n.º 3
0
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")
Ejemplo n.º 4
0
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")
Ejemplo n.º 5
0
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")