inginious.frontend.tests package

Submodules

inginious.frontend.tests.TestCourse module

class inginious.frontend.tests.TestCourse.TestCourse[source]

Bases: object

setUp()[source]
test_all_courses_loading()[source]

Tests if all courses are loaded by Course.get_all_courses()

test_course_loading()[source]

Tests if a course file loads correctly

test_invalid_coursename()[source]
test_tasks_loading()[source]

Tests loading tasks from the get_tasks method

test_tasks_loading_invalid()[source]
test_unreadable_course()[source]
class inginious.frontend.tests.TestCourse.TestCourseWrite[source]

Bases: object

Test the course update function

setUp()[source]
tearDown()[source]
test_course_update()[source]

inginious.frontend.tests.TestTask module

class inginious.frontend.tests.TestTask.test_tasks_basic[source]

Bases: object

setUp()[source]
test_course()[source]
test_input_consistent_invalid()[source]
test_input_consistent_valid()[source]
test_no_problems()[source]
test_task_invalid()[source]
test_task_invalid_name()[source]
test_task_loading()[source]

Tests if a course file loads correctly

class inginious.frontend.tests.TestTask.test_tasks_problems[source]

Bases: object

setUp()[source]
test_code()[source]

Tests code problems methods

test_file()[source]

Tests file problems methods

test_match()[source]

Tests match problems methods

test_multiple_choice()[source]

Tests multiple choice problems methods

test_problem_types()[source]

Tests if problem types are correctly recognized

inginious.frontend.tests.TestParsableText module

class inginious.frontend.tests.TestParsableText.TestParsableText[source]

Bases: object

test_code()[source]
test_failing_parser_injection()[source]
test_hidden_until_after()[source]
test_hidden_until_before()[source]
test_hidden_until_before_admin()[source]
test_html_tidy()[source]
test_parsable_text_once()[source]
test_str()[source]
test_unicode()[source]
test_wrong_rst_injection()[source]

inginious.frontend.tests.TestPluginManager module

class inginious.frontend.tests.TestPluginManager.TestPluginManager[source]

Bases: object

make_exception()[source]
test_exception()[source]

Hook Manager should silently ignore hooks that make exceptions

test_multple()[source]

inginious.frontend.tests.TestTaskDisplay module

class inginious.frontend.tests.TestTaskDisplay.TestDisplayAdmin(methodName='runTest')[source]

Bases: inginious.frontend.tests.TestTaskDisplay.TestDisplaySuperAdmin

login = 'test2'
password = 'test'
class inginious.frontend.tests.TestTaskDisplay.TestDisplaySuperAdmin(methodName='runTest')[source]

Bases: inginious.frontend.tests.TestLogin.LoggedInTest

login = 'test'
password = 'test'
test_register()[source]
class inginious.frontend.tests.TestTaskDisplay.TestDisplayUserAfterDeadline(methodName='runTest')[source]

Bases: inginious.frontend.tests.TestLogin.RegisteredTest

course = 'test'
login = 'test3'
password = 'test'
test_register()[source]

inginious.frontend.tests.TestTaskSubmission module

class inginious.frontend.tests.TestTaskSubmission.TestTaskSubmission(methodName='runTest')[source]

Bases: inginious.frontend.tests.TestLogin.LoggedInTest

login = 'test'
password = 'test'
test_submit()[source]