Skip to content

Commit c69cd4e

Browse files
author
zhuravlevevv
committed
fix postgresql: fix pg statement usage after pg_ntrx_execute mock completion
commit_hash:2590c7731bb998dafefb1062cf8d1978d4e9e461
1 parent 1b50084 commit c69cd4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testsuite/pytest_plugins/pytest_userver/plugins/postgresql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def _enable_failure(
4242
def _failure_tp(data):
4343
return {
4444
'inject_failure': self.is_failure_enabled(name),
45-
'failure_type': self._get_failure_type(name).name,
45+
'failure_type': self._get_failure_type(name).name if self.is_failure_enabled(name) else None,
4646
}
4747

4848
def _disable_failure(self, name: str) -> None:

0 commit comments

Comments
 (0)