Skip to content

Commit

Permalink
[runpod] Test the minimum number of locations
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Mezentsev authored and TheBits committed May 8, 2024
1 parent 6cc6c02 commit 529a829
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/integrity_tests/test_runpod.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,18 @@ def test_locations(data_rows):
expected = {
"CA-MTL-1",
"CA-MTL-2",
"CA-MTL-3",
"EU-NL-1",
"EU-RO-1",
"EU-SE-1",
"EUR-IS-1",
"EUR-IS-2",
"EUR-NO-1",
"US-GA-1",
"US-OR-1",
"US-TX-3",
}
locations = select_row(data_rows, "location")
assert set(locations) == expected

count = Counter(locations)
for loc in expected:
assert count[loc] > 1
locations = set(select_row(data_rows, "location"))
assert len(locations) >= len(expected) - 3


def test_spot(data_rows):
Expand Down

0 comments on commit 529a829

Please sign in to comment.