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

Method get_column_value

tests/utils/table.py:41–51  ·  view source on GitHub ↗

Assumes horizontal table (each value has a separate column).

(self, key: str)

Source from the content-addressed store, hash-verified

39 assert row == value
40
41 def get_column_value(self, key: str) -> Optional[List[str]]:
42 """
43 Assumes horizontal table (each value has a separate column).
44 """
45 if self.header is None:
46 raise Exception(f"This table is not horizontal!\n{self}")
47 if key not in self.header:
48 return None
49
50 index = self.header.index(key)
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)

Callers 15

check_column_valueMethod · 0.95
checkFunction · 0.80
test_job_failFunction · 0.80
task_is_waitingFunction · 0.80
test_job_tasks_tableFunction · 0.80
test_job_tasks_makespanFunction · 0.80
test_job_timeoutFunction · 0.80

Calls 1

indexMethod · 0.80

Tested by 15

checkFunction · 0.64
test_job_failFunction · 0.64
task_is_waitingFunction · 0.64
test_job_tasks_tableFunction · 0.64
test_job_tasks_makespanFunction · 0.64
test_job_timeoutFunction · 0.64