- Moving xmodule folder to root as we're dissolving sub-projects of common folder in edx-platform
- More info: https://openedx.atlassian.net/browse/BOM-2579
- -e common/lib/xmodule has been removed from the requirements as xmodule has itself become the part of edx-platform and not being installed through requirements
- The test files common/lib/xmodule/test_files/ have been removed as they are not being used anymore
25 lines
700 B
Python
25 lines
700 B
Python
"""Tests for methods defined in util/django.py"""
|
|
|
|
|
|
from unittest import TestCase
|
|
|
|
from xmodule.util.xmodule_django import get_current_request, get_current_request_hostname
|
|
|
|
|
|
class UtilDjangoTests(TestCase):
|
|
"""
|
|
Tests for methods exposed in util/django
|
|
"""
|
|
|
|
def test_get_current_request(self):
|
|
"""
|
|
Since we are running outside of Django assert that get_current_request returns None
|
|
"""
|
|
assert get_current_request() is None
|
|
|
|
def test_get_current_request_hostname(self):
|
|
"""
|
|
Since we are running outside of Django assert that get_current_request_hostname returns None
|
|
"""
|
|
assert get_current_request_hostname() is None
|