Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions openedx_authz/settings/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@

from openedx_authz import ROOT_DIRECTORY

# Add Casbin configuration
CASBIN_MODEL = os.path.join(ROOT_DIRECTORY, "engine", "config", "model.conf")
# Redis host and port are temporarily loaded here for the MVP
REDIS_HOST = "redis"
REDIS_PORT = 6379

def plugin_settings(settings): # pylint: disable=unused-argument
"""
Configure plugin settings for Open edX.
This function is called by the Open edX plugin system to configure
the Django settings for this plugin.

Args:
settings: The Django settings object
"""


DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
Expand Down Expand Up @@ -55,6 +62,13 @@
]

SECRET_KEY = "test-secret-key"
CASBIN_WATCHER_ENABLED = False

USE_TZ = True

ROOT_URLCONF = "openedx_authz.urls"

# Casbin configuration
CASBIN_MODEL = os.path.join(ROOT_DIRECTORY, "engine", "config", "model.conf")
CASBIN_WATCHER_ENABLED = False
REDIS_HOST = "redis"
REDIS_PORT = 6379