def _help_test_cli(self, args): """Test running the pipeline on all models.""" if issubclass(self.model_cls, pykeen.models.RGCN): self.skipTest( 'There is a problem with non-reproducible unittest for R-GCN.') runner = CliRunner() cli = build_cli_from_cls(self.model_cls) # TODO: Catch HolE MKL error? result: Result = runner.invoke(cli, args) self.assertEqual( 0, result.exit_code, msg=f''' Command ======= $ pykeen train {self.model_cls.__name__.lower()} {' '.join(args)} Output ====== {result.output} Exception ========= {result.exc_info[1]} Traceback ========= {''.join(traceback.format_tb(result.exc_info[2]))} ''', )
def _help_test_cli(self, args): """Test running the pipeline on all models.""" if issubclass(self.model_cls, pykeen.models.RGCN): self.skipTest(f"Cannot choose interaction via CLI for {self.model_cls}.") runner = CliRunner() cli = build_cli_from_cls(self.model_cls) # TODO: Catch HolE MKL error? result: Result = runner.invoke(cli, args) self.assertEqual( 0, result.exit_code, msg=f''' Command ======= $ pykeen train {self.model_cls.__name__.lower()} {' '.join(args)} Output ====== {result.output} Exception ========= {result.exc_info[1]} Traceback ========= {''.join(traceback.format_tb(result.exc_info[2]))} ''', )