Skip to content

Commit

Permalink
DataCrunch: Add the FIN-02 datacenter
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Mezentsev committed Mar 12, 2024
1 parent 275446b commit 6096564
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ List of all available filters:
from gpuhunt import Catalog

catalog = Catalog()
catalog.load(version="20230831")
catalog.load(version="20240310")
items = catalog.query()

print(*items, sep="\n")
Expand Down
6 changes: 5 additions & 1 deletion src/integrity_tests/test_datacrunch.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ def select_row(rows, name: str) -> List[str]:


def test_locations(data_rows):
expected = set(("FIN-01", "ICE-01"))
expected = {
"FIN-01",
"FIN-02",
"ICE-01",
}
locations = select_row(data_rows, "location")
assert set(locations) == expected

Expand Down
1 change: 1 addition & 0 deletions src/tests/providers/test_datacrunch.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def locations():
# datacrunch.locations.get()
return [
{"code": "FIN-01", "name": "Finland 1", "country_code": "FI"},
{"code": "FIN-02", "name": "Finland 2", "country_code": "FI"},
{"code": "ICE-01", "name": "Iceland 1", "country_code": "IS"},
]

Expand Down

0 comments on commit 6096564

Please sign in to comment.