compiler.tests.test_compiler module¶
Tests for compiler.start_compilationr
.
-
class
compiler.tests.test_compiler.
TestDoCompile
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
Test main compilation routine.
-
test_cannot_save
(mock_store, mock_run, mock_filemanager)[source]¶ There is a problem storing the results.
-
test_connection_failed
(mock_store, mock_run, mock_filemanager)[source]¶ Request to filemanager fails.
-
test_do_compile_success
(mock_store, mock_run, mock_filemanager)[source]¶ Everything goes according to plan.
-
test_forbidden
(mock_store, mock_run, mock_filemanager)[source]¶ Request to filemanager is forbidden.
-
test_not_found
(mock_store, mock_run, mock_filemanager)[source]¶ Request to filemanager fails because there is no source package.
-
test_source_corrupted
(mock_store, mock_run, mock_filemanager)[source]¶ There is a problem with the content of the source package.
Request to filemanager is unauthorized.
-
-
class
compiler.tests.test_compiler.
TestGetTask
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
Test
get_task()
.
-
class
compiler.tests.test_compiler.
TestRun
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
Tests for
compiler._run()
.