MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / check_column_value

Method check_column_value

tests/utils/table.py:53–58  ·  view source on GitHub ↗
(self, key: str, index: int, value: str)

Source from the content-addressed store, hash-verified

51 return [row[index] for row in self.rows]
52
53 def check_column_value(self, key: str, index: int, value: str):
54 column = self.get_column_value(key)
55 if not column:
56 raise Exception(f"Value for key `{key!r}` not found in\n{self}")
57 row = column[index]
58 assert row == value
59
60 def check_columns_value(self, keys: List[str], index: int, values: List[str]):
61 assert len(keys) == len(values)

Callers 15

check_columns_valueMethod · 0.95
test_job_filtersFunction · 0.80
checkFunction · 0.80
test_job_failFunction · 0.80
test_cancel_runningFunction · 0.80
test_cancel_finishedFunction · 0.80
test_cancel_someFunction · 0.80
test_cancel_with_reasonFunction · 0.80

Calls 1

get_column_valueMethod · 0.95

Tested by 15

test_job_filtersFunction · 0.64
checkFunction · 0.64
test_job_failFunction · 0.64
test_cancel_runningFunction · 0.64
test_cancel_finishedFunction · 0.64
test_cancel_someFunction · 0.64
test_cancel_with_reasonFunction · 0.64
test_job_tasks_tableFunction · 0.64