Open pedrokost opened 7 years ago
Is it possible to change the database name, and other configuration apart from the port?
I am trying to do this:
Postgresql = testing.postgresql.PostgresqlFactory( cache_initialized_db=True, on_initialized=handler, port=settings.DB_SETTINGS['port'], database=settings.DB_SETTINGS['name'], user=settings.DB_SETTINGS['user'], host=settings.DB_SETTINGS['host'] )
When in the handler method, when running
print(postgresql.dsn())
I receive the default configuration, not the parameters I passed in.
From postgresql.py:
https://github.com/tk0miya/testing.postgresql/blob/c81ded434d00ec8424de0f9e1f4063c778c6aaa8/src/testing/postgresql.py#L57-L65
Seems like dsn() only returns those default params, since you did not put any in as parameters.
Is it possible to change the database name, and other configuration apart from the port?
I am trying to do this:
When in the handler method, when running
I receive the default configuration, not the parameters I passed in.