depot/third_party/nixpkgs/pkgs/development/python-modules/django-prometheus/drop-untestable-database-backends.patch
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

38 lines
1.4 KiB
Diff

diff --git a/django_prometheus/tests/end2end/testapp/settings.py b/django_prometheus/tests/end2end/testapp/settings.py
index cdd167f..5c6073b 100644
--- a/django_prometheus/tests/end2end/testapp/settings.py
+++ b/django_prometheus/tests/end2end/testapp/settings.py
@@ -53,33 +53,6 @@ DATABASES = {
"ENGINE": "django_prometheus.db.backends.sqlite3",
"NAME": "db.sqlite3",
},
- # Comment this to not test django_prometheus.db.backends.postgres.
- "postgresql": {
- "ENGINE": "django_prometheus.db.backends.postgresql",
- "NAME": "postgres",
- "USER": "postgres",
- "PASSWORD": "",
- "HOST": "localhost",
- "PORT": "5432",
- },
- # Comment this to not test django_prometheus.db.backends.postgis.
- "postgis": {
- "ENGINE": "django_prometheus.db.backends.postgis",
- "NAME": "postgis",
- "USER": "postgres",
- "PASSWORD": "",
- "HOST": "localhost",
- "PORT": "5432",
- },
- # Comment this to not test django_prometheus.db.backends.mysql.
- "mysql": {
- "ENGINE": "django_prometheus.db.backends.mysql",
- "NAME": "django_prometheus_1",
- "USER": "root",
- "PASSWORD": "",
- "HOST": "127.0.0.1",
- "PORT": "3306",
- },
# The following databases are used by test_db.py only
"test_db_1": {
"ENGINE": "django_prometheus.db.backends.sqlite3",