compiler.services.filemanager.tests.test_filemanager module
Tests for compiler.services.filemanager
.
-
class
compiler.services.filemanager.tests.test_filemanager.
TestGetUpload
(methodName='runTest')[source]
Bases: unittest.case.TestCase
FileManager.get_upload()
returns the upload content.
-
session
(status_code=<HTTPStatus.OK: 200>, method='get', json={}, content='', headers={})[source]
Make a mock session.
-
test_get_upload
(mock_Session)[source]
Get upload that exists.
-
test_get_upload_nonexistant
(mock_Session)[source]
Get info for an upload workspace that does not exist.
-
class
compiler.services.filemanager.tests.test_filemanager.
TestGetUploadInfo
(methodName='runTest')[source]
Bases: unittest.case.TestCase
FileManager.get_upload_info()
returns the current ETag.
-
session
(status_code=<HTTPStatus.OK: 200>, method='get', json={}, content='', headers={})[source]
Make a mock session.
-
test_get_upload_info
(mock_Session)[source]
Get info for an upload workspace that exists.
-
test_get_upload_info_bad_json
(mock_Session)[source]
FM service reurns bad JSON.
-
test_get_upload_info_bad_request
(mock_Session)[source]
We made a bad request.
-
test_get_upload_info_bad_ssl
(mock_Session)[source]
FM service has bad TLS.
-
test_get_upload_info_error
(mock_Session)[source]
FM service replied 500 Internal Server Error.
-
test_get_upload_info_forbidden
(mock_Session)[source]
We made a forbidden request.
-
test_get_upload_info_no_connection
(mock_Session)[source]
FM service cannot connect.
-
test_get_upload_info_nonexistant
(mock_Session)[source]
Get info for an upload workspace that does not exist.
-
test_get_upload_info_unauthorized
(mock_Session)[source]
We made an unauthorized request.
-
class
compiler.services.filemanager.tests.test_filemanager.
TestServiceStatus
(methodName='runTest')[source]
Bases: unittest.case.TestCase
Test FileManager.get_status()
.
-
test_status
(mock_Session)[source]
Get the status of the file manager service sucessfully.