(self)
| 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 |
nothing calls this directly
no test coverage detected