compiler.tests.test_controllers module
Tests for compiler.controllers.
-
class
compiler.tests.test_controllers.TestGetCompilationLog(methodName='runTest')[source]
Bases: unittest.case.TestCase
Tests for controllers.get_log().
-
test_get_log_completed(mock_store)[source]
Request log for a completed compilation.
-
test_get_log_nonexistant(mock_store)[source]
Request for a nonexistant compilation log.
-
class
compiler.tests.test_controllers.TestGetProduct(methodName='runTest')[source]
Bases: unittest.case.TestCase
Tests for controllers.get_product().
-
test_get_product_completed(mock_store)[source]
Request for a completed compilation product.
-
test_get_product_nonexistant(mock_store)[source]
Request for a nonexistant compilation product.
-
class
compiler.tests.test_controllers.TestGetTask(methodName='runTest')[source]
Bases: unittest.case.TestCase
Tests for controllers.get_status().
-
test_get_info_completed(mock_store)[source]
Request for a completed compilation.
-
test_get_info_in_progress(mock_store)[source]
Request for a compilation in progress.
-
test_get_info_nonexistant(mock_store)[source]
Request for a nonexistant compilation.
-
test_get_status_completed(mock_store)[source]
Request for a completed compilation.
-
test_get_status_in_progress(mock_store)[source]
Request for a completed compilation.
-
class
compiler.tests.test_controllers.TestRequestCompilation(methodName='runTest')[source]
Bases: unittest.case.TestCase
Tests for controllers.compile().
-
setUp()[source]
Create an app.
-
test_compile_de_novo(mock_fm, mock_store, mock_compiler)[source]
Request for a new compilation.
-
test_compile_exists(mock_store, mock_compiler)[source]
Request for a compilation that already exists.
-
test_request_missing_parameter()[source]
Request for a new compilation with missing parameter.
-
compiler.tests.test_controllers.mock_url_for(endpoint, **kwargs)[source]
Simple mock for flask.url_for().
-
compiler.tests.test_controllers.raise_no_such_task(*args, **kwargs)[source]
-
compiler.tests.test_controllers.raise_store_does_not_exist(*args, **kwargs)[source]