Update the unit tests to accomodate the new calling co0nvention.
@@ -98,14 +98,14 @@ class TestKGTKFilter(unittest.TestCase):
def test_kgtk_filter_bad_pattern(self):
with self.assertRaises(KGTKException):
- run(input_file=Path(self.file_path), output_file=Path(f'{self.temp_dir}/one_row.tsv'),
- reject_file=None, pattern="Q65695069;P577;^2019-07-19T00:00:00Z/11;bla",
+ run(input_file=Path(self.file_path), output_files=[[Path(f'{self.temp_dir}/one_row.tsv')]],
+ reject_file=None, patterns=[["Q65695069;P577;^2019-07-19T00:00:00Z/11;bla"]],
subj_col=None, pred_col=None, obj_col=None, or_pattern=False,
- invert=False, show_version=False)
+ invert=False, first_match_only=False, show_version=False)
def test_kgtk_filter_missing_columns(self):
with self.assertRaises(KGTKException):
- run(input_file=Path(self.file_path2), output_file=Path(f'{self.temp_dir}/one_row.tsv'),
- reject_file=None, pattern="Q;P;O",
+ run(input_file=Path(self.file_path2), output_files=[[Path(f'{self.temp_dir}/one_row.tsv')]],
+ reject_file=None, patterns=[["Q;P;O"]],
subj_col='1', pred_col='2', obj_col='3', or_pattern=False,
- invert=False, show_version=False)
+ invert=False, first_match_only=False, show_version=False)
