(self)
| 172 | self.assertNotIn("database", params) |
| 173 | |
| 174 | def test_service_name_default_db(self): |
| 175 | # None is used to connect to the default 'postgres' db. |
| 176 | from django.db.backends.postgresql.base import DatabaseWrapper |
| 177 | |
| 178 | settings = connection.settings_dict.copy() |
| 179 | settings["NAME"] = None |
| 180 | settings["OPTIONS"] = {"service": "django_test"} |
| 181 | params = DatabaseWrapper(settings).get_connection_params() |
| 182 | self.assertEqual(params["dbname"], "postgres") |
| 183 | self.assertNotIn("service", params) |
| 184 | |
| 185 | def test_connect_and_rollback(self): |
| 186 | """ |
nothing calls this directly
no test coverage detected