The logger argument is missing in self.builder function call:
|
return self.builder(self.val, self.description, self.kind, ex) |
|
return self.builder(str(e), self.description, self.kind) |
return self.builder(self.val, self.description, self.kind, ex , self.logger)
This leads to throwing exceptions if the logger is used in some custom extension.
Additionally, the function when_lated_with does not return AssertionBuilder on invalid type of exception or failure as expected.
The logger argument is missing in self.builder function call:
assertpy/assertpy/exception.py
Line 66 in c970c66
assertpy/assertpy/exception.py
Line 100 in c970c66
return self.builder(self.val, self.description, self.kind, ex , self.logger)This leads to throwing exceptions if the logger is used in some custom extension.
Additionally, the function
when_lated_withdoes not return AssertionBuilder on invalid type of exception or failure as expected.