Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correct DbConnection instantiations as a result of commit 78aa961.

 * pyrseas/testutils.py (PostgresDb.{execute_and_map,proces_map): Used
   named parameters for host and port since commit 78aa961 inserted
   extra positional argument.
  • Loading branch information...
commit f82fa604142ae5f126c23660c03c2ac429a523e2 1 parent ce032f4
@jmafc jmafc authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 pyrseas/testutils.py
View
6 pyrseas/testutils.py
@@ -278,13 +278,15 @@ def execute_and_map(self, ddlstmt):
"Execute a DDL statement, commit, and return a map of the database"
self.execute(ddlstmt)
self.conn.commit()
- db = Database(DbConnection(self.name, self.user, self.host, self.port))
+ db = Database(DbConnection(self.name, self.user, host=self.host,
+ port=self.port))
return db.to_map()
def process_map(self, input_map):
"""Process an input map and return the SQL statements necessary to
convert the database to match the map."""
- db = Database(DbConnection(self.name, self.user, self.host, self.port))
+ db = Database(DbConnection(self.name, self.user, host=self.host,
+ port=self.port))
return db.diff_map(input_map)
Please sign in to comment.
Something went wrong with that request. Please try again.