Commit f925a4af by Ned Batchelder

Move recommender XBlock tests to openedx/tests/xblock_integration

I want to make clear that these tests rely on XBlocks in other repos,
and that ideally in time we would move these tests into the XBlock repo.
parent 830a695f
"""Tests of XBlocks integrated with edx-platform.
These tests exercise XBlocks which may live in other repos, to confirm both
that the XBlock works, and that edx-platform continues to properly support the
XBlock.
"""
...@@ -145,20 +145,23 @@ class SystemTestSuite(NoseTestSuite): ...@@ -145,20 +145,23 @@ class SystemTestSuite(NoseTestSuite):
# django-nose will import them early in the test process, # django-nose will import them early in the test process,
# thereby making sure that we load any django models that are # thereby making sure that we load any django models that are
# only defined in test files. # only defined in test files.
default_test_id = "{system}/djangoapps/* common/djangoapps/* openedx/core/djangoapps/*".format( default_test_id = (
system=self.root "{system}/djangoapps/*"
" common/djangoapps/*"
" openedx/core/djangoapps/*"
" openedx/tests/*"
) )
if self.root in ('lms', 'cms'): if self.root in ('lms', 'cms'):
default_test_id += " {system}/lib/*".format(system=self.root) default_test_id += " {system}/lib/*"
if self.root == 'lms': if self.root == 'lms':
default_test_id += " {system}/tests.py".format(system=self.root) default_test_id += " {system}/tests.py"
if self.root == 'cms': if self.root == 'cms':
default_test_id += " {system}/tests/*".format(system=self.root) default_test_id += " {system}/tests/*"
return default_test_id return default_test_id.format(system=self.root)
class LibTestSuite(NoseTestSuite): class LibTestSuite(NoseTestSuite):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment