Skip to content

Commit

Permalink
Merge pull request #72 from yassun7010/fix_row_type_check
Browse files Browse the repository at this point in the history
fix: row_type check.
  • Loading branch information
yassun7010 authored Feb 8, 2024
2 parents b21fcdd + f80cb26 commit bc077e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion turu-core/src/turu/core/mock/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ def provide_response(

_row_type, _response = self._data.pop(0)

if _row_type is not row_type:
if _row_type is not row_type and not (
row_type.__module__ == _row_type.__module__
and row_type.__name__ == _row_type.__name__
):
raise TuruMockResponseTypeMismatchError(row_type, _row_type, self._counter)

if isinstance(_response, Exception):
Expand Down

0 comments on commit bc077e7

Please sign in to comment.