Skip to content

Commit

Permalink
ENH: added functionality and tests to list available indices and fetc…
Browse files Browse the repository at this point in the history
…h sm-specific ones.
  • Loading branch information
DanielaSchacherer committed Jul 24, 2024
1 parent 85e7173 commit 91b722b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/idcindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,13 +463,13 @@ def test_cli_download(self):

def test_list_indices(self):
i = IDCClient()
assert not i.self.indices_overview.empty # assert that df was created
assert not i.indices_overview.empty # assert that df was created

def test_fetch_index(self):
i = IDCClient()
assert i.self.indices_overview["sm_index", "installed"] is False
assert i.indices_overview["sm_index", "installed"] is False
i.fetch_index("sm_index")
assert i.self.indices_overview["sm_index", "installed"] is True
assert i.indices_overview["sm_index", "installed"] is True


if __name__ == "__main__":
Expand Down

0 comments on commit 91b722b

Please sign in to comment.