def test_remember_save(tmpdir, dummy_dataframe): catalog = DataCatalogWithDefault(data_sets={}, default=default_csv, remember=True) path = str(tmpdir.mkdir("sub").join("test.csv")) catalog.save(path, dummy_dataframe) assert tmpdir.join("sub").join("test.csv") in catalog.list()
def test_remember_load(): catalog = DataCatalogWithDefault(data_sets={}, default=default_memory, remember=True) assert catalog.load("any") == 5 assert "any" in catalog.list()