(self)
| 53 | workspace.RunOperatorOnce(op) |
| 54 | |
| 55 | def test_exception(self): |
| 56 | op = CreatePythonOperator(MainOpFunctionThatThrowsCustomError, [], []) |
| 57 | with self.assertRaisesRegex(CustomError, "This is an intentional exception."): |
| 58 | workspace.RunOperatorOnce(op) |
| 59 | |
| 60 | def test_exception_builder(self): |
| 61 | op = CreatePythonOperator(MainOpFunctionThatThrowsCustomErrorInBuilder, [], []) |
nothing calls this directly
no test coverage detected