def test_interface_table_registry(): # Test if script_table_registry keeps only the latest # table names of the installed data packages in # script_table_registry install_csv("iris") wine_data = fetch("wine-composition") assert "iris" not in wine_data.keys()
def test_interface_table_registry(tmpdir): # Test if script_table_registry keeps only the latest # table names of the installed data packages in # script_table_registry workdir = tmpdir.mkdtemp() workdir.chdir() rt.install_csv("iris") wine_data = rt.fetch("wine-composition") assert "iris" not in wine_data.keys() os.chdir(retriever_root_dir)
def test_install_csv(): """Installs modified scripts using csv engine""" errors = [] for script in global_modified_scripts: if script not in spatial_datasets_list: try: rt.install_csv(script, table_name='{db}_{table}.csv', debug=True) except KeyboardInterrupt: pass except Exception as e: errors.append(("csv", script, e)) assert errors == []
from retriever import install_csv install_csv('nyc-tree-count')
from retriever import install_csv install_csv('phytoplankton-size')