def test_returns_table_if_local_db_file_exists(self):
     local_dbs = sim_db.set_local_path_names(_parent_path)
     for path in local_dbs:
         db_tbl = sim_db.get_local_packages(path)
         assert isinstance(db_tbl, Table)
 def test_throws_error_if_local_db_file_path_is_bogus(self):
     local_db_path = "bogus.txt"
     with pytest.raises(ValueError):
         sim_db.get_local_packages(local_db_path)
 def test_package_added_to_local_db(self):
     local_pkgs_before = sim_db.get_local_packages(sim_db._local_inst_db())
     sim_db.download_package("test_package")
     local_pkgs_after = sim_db.get_local_packages(sim_db._local_inst_db())
     assert len(local_pkgs_after) == len(local_pkgs_before) + 1