api.tests package

Submodules

api.tests.test_urls module

class api.tests.test_urls.TestURLs(methodName='runTest')

Bases: django.test.testcases.SimpleTestCase

test_assignment_url_resolution()
test_course_url_resolution()
test_group_url_resolution()
test_student_url_resolution()

api.tests.test_views module

class api.tests.test_views.TestPostViews(methodName='runTest')

Bases: django.test.testcases.TestCase

Tests to verify the functioning of all the post requests in bot_server/api

setUp()

Test setup for each test in this class. It is done for each of the tests

test_post_assignment()

Test behaviour of correct POST request for adding an assignment to an existing course.

test_post_course()

Test behaviour of correct POST request for creating a course workspace

test_post_group()

Test behaviour of correct POST request for creating a student group in an existing workspace.

test_post_student()

Test behaviour of correct POST request for creating/adding a student to an existing workspace.

Module contents