Skip to content

Commit

Permalink
feat: add tenant stats view
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-canon committed Jun 29, 2023
1 parent ff69441 commit 2a84ecc
Show file tree
Hide file tree
Showing 21 changed files with 12,886 additions and 103 deletions.
9 changes: 8 additions & 1 deletion eox_nelp/edxapp_wrapper/test_backends/edxmako_m_v1.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from django.shortcuts import render
from mock import MagicMock


Expand All @@ -7,4 +8,10 @@ def get_edxmako():
Returns:
Mock class.
"""
return MagicMock()
def render_wrapper(template_name, dictionary, namespace, request, **kwargs):
return render(request, template_name, context=dictionary)

edxmako = MagicMock()
edxmako.shortcuts.render_to_response = render_wrapper

return edxmako
5 changes: 1 addition & 4 deletions eox_nelp/settings/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def plugin_settings(settings): # pylint: disable=function-redefined
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
os.path.join(BASE_DIR, 'course_experience/frontend/templates'),
os.path.join(BASE_DIR, 'stats/templates'),
],
'APP_DIRS': True,
'OPTIONS': {
Expand All @@ -119,10 +120,6 @@ def plugin_settings(settings): # pylint: disable=function-redefined
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
# 'loaders': [
# 'django.template.loaders.filesystem.Loader',
# 'django.template.loaders.app_directories.Loader',
# ],
'debug': True,
},
},
Expand Down
4 changes: 3 additions & 1 deletion eox_nelp/static/feedback_carousel/css/feedback_carousel.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion eox_nelp/static/feedback_carousel/js/feedback_carousel.js

Large diffs are not rendered by default.

Loading

0 comments on commit 2a84ecc

Please sign in to comment.