Skip to content

Commit

Permalink
Merge pull request #1064 from ClearcodeHQ/jjmurre/main
Browse files Browse the repository at this point in the history
Jjmurre/main
  • Loading branch information
fizyk authored Jan 17, 2025
2 parents 40e9d0a + 9d0f698 commit ad6739b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,11 @@ For this import DatabaseJanitor and use its init and drop methods:
# variable definition
janitor = DatabaseJanitor(
postgresql_proc.user,
postgresql_proc.host,
postgresql_proc.port,
"my_test_database",
postgresql_proc.version,
user=postgresql_proc.user,
host=postgresql_proc.host,
proc=postgresql_proc.port,
testdb="my_test_database",
version=postgresql_proc.version,
password="secret_password",
)
janitor.init()
Expand All @@ -377,11 +377,11 @@ or use it as a context manager:
# variable definition
with DatabaseJanitor(
postgresql_proc.user,
postgresql_proc.host,
postgresql_proc.port,
"my_test_database",
postgresql_proc.version,
user=postgresql_proc.user,
host=postgresql_proc.host,
port=postgresql_proc.port,
dbname="my_test_database",
version=postgresql_proc.version,
password="secret_password",
):
yield psycopg2.connect(
Expand Down
1 change: 1 addition & 0 deletions newsfragments/+daad0af0.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix DatabaseJanitor documentation.

0 comments on commit ad6739b

Please sign in to comment.