Skip to content

Commit eb8f8da

Browse files
author
Ponicode-bot
committed
[ponicode-pull-request] Ponicode wrote new docstrings!
1 parent 1d192c1 commit eb8f8da

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/pytest_postgresql/janitor.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ def cursor(self) -> cursor:
8888
conn.close()
8989

9090
def __enter__(self: DatabaseJanitorType) -> DatabaseJanitorType:
91+
"""
92+
Sets a new : class : attrpc. database.
93+
94+
Args:
95+
self: (todo): write your description
96+
"""
9197
self.init()
9298
return self
9399

@@ -96,4 +102,14 @@ def __exit__(
96102
exc_type: Optional[Type[BaseException]],
97103
exc_val: Optional[BaseException],
98104
exc_tb: Optional[TracebackType]) -> None:
105+
"""
106+
Called when the exception is raised.
107+
108+
Args:
109+
self: (todo): write your description
110+
exc_type: (todo): write your description
111+
Type: (todo): write your description
112+
exc_val: (todo): write your description
113+
exc_tb: (todo): write your description
114+
"""
99115
self.drop()

0 commit comments

Comments
 (0)