MCPcopy Index your code
hub / github.com/pathwaycom/pathway / __call__

Method __call__

python/pathway/tests/utils.py:508–522  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

506 self.id_from = id_from
507
508 def __call__(self):
509 try:
510 ex = pw.debug.table_from_markdown(self.expected)
511 dfs = []
512 for entry in os.listdir(self.output_path):
513 dfs.append(pd.read_csv(self.output_path / entry))
514 df = pd.concat(dfs, ignore_index=True).rename(
515 columns={"time": "__time__", "diff": "__diff__"}
516 )
517 res = pw.debug.table_from_pandas(df, id_from=self.id_from)
518 assert_table_equality_wo_index(res, ex)
519 except Exception as exception:
520 self.exception = exception
521 return False
522 return True
523
524 def provide_information_on_failure(self):
525 return self.exception

Callers

nothing calls this directly

Calls 4

table_from_markdownMethod · 0.80
table_from_pandasMethod · 0.80
renameMethod · 0.45
concatMethod · 0.45

Tested by

no test coverage detected