local.py.j2 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # flake8: noqa
  2. from unittest.mock import MagicMock
  3. from .default import *
  4. DATABASES = {
  5. "default": {
  6. "ENGINE": "django.contrib.gis.db.backends.postgis",
  7. "HOST": "db.unbl.ink",
  8. "NAME": "sure_porchpals",
  9. "USER": "sure",
  10. "PASSWORD": "{{sure_db_pass}}",
  11. }
  12. }
  13. MONGODB_DATABASE = {
  14. "name": "platform_test",
  15. "host": "docdb.unbl.ink",
  16. "password": "{{mongo_db_pass}}",
  17. "username": "sure",
  18. "port": 27017,
  19. }
  20. GDAL_LIBRARY_PATH = "/opt/homebrew/lib/libgdal.dylib"
  21. GEOS_LIBRARY_PATH = "/opt/homebrew/lib/libgeos_c.dylib"
  22. ELASTICSEARCH_DSL = {"default": {"hosts": "elastic.unbl.ink:9200"}}
  23. CACHES.update(
  24. {
  25. "default": {
  26. "BACKEND": "django.core.cache.backends.locmem.LocMemCache",
  27. },
  28. "flags": {
  29. "BACKEND": "django.core.cache.backends.locmem.LocMemCache",
  30. },
  31. "redis": {
  32. "BACKEND": "django.core.cache.backends.locmem.LocMemCache",
  33. },
  34. }
  35. )
  36. SECRET_SETTINGS = MagicMock()
  37. SECRET_SETTINGS.general.fernet_secret_key = (
  38. "yBTJ1D_U5ertKcqmqIwgLcMGhOMwB0BM_tzmUn0BuII="
  39. )
  40. SECRET_SETTINGS.postmark.sure.api_key = "sure_postmark_api_key"
  41. SECRET_SETTINGS.postmark.porchcare.api_key = "porchcare_postmark_api_key"
  42. SECRET_SETTINGS.general.services_secret_key = open(
  43. PROJ_DIR + "/tests/test-jwt-key"
  44. ).read()
  45. SECRET_SETTINGS.payment_service.service_url = "https://foo.com"
  46. SECRET_SETTINGS.porchcare.base_url = "http://localhost.com"
  47. SECRET_SETTINGS.porchcare.claim_submit_email = "submit-claim@example.com"
  48. SECRET_SETTINGS.porchcare.dashboard_url = "http://dashboard.com"
  49. SECRET_SETTINGS.s3.statics.bucket_name = "static-bucket"
  50. SECRET_SETTINGS.s3.transfer_bucket_name = "surepreme-transfer-bucket"
  51. SECRET_SETTINGS.secretsmanager.gpg_secret_name = (
  52. "/platform/testing/porchpals/gpg/private_key"
  53. )
  54. SECRET_SETTINGS.holman.sftp.hostname = "sftp.com"
  55. SECRET_SETTINGS.holman.sftp.username = "user"
  56. SECRET_SETTINGS.holman.sftp.password = "pass"
  57. SECRET_SETTINGS.general.api_base_url = "https://api.porchpals.com"