Terarea  2
The automation project
Loading...
Searching...
No Matches
test_boilerplate_responses Namespace Reference

Functions

None _register_fake_user ()
 
None _unregister_fake_user ()
 
None _sing_fake_user_in ()
 
None _sign_fake_user_out ()
 
None test_build_response_body_no_error ()
 
None test_build_response_body_error ()
 
None test_build_response_body_no_error_logged_in ()
 
None test_build_response_body_error_logged_in ()
 
None test_invalid_token ()
 
None test_not_logged_in ()
 
None test_login_failed ()
 
None test_insuffisant_rights_invalid_token ()
 
None test_insuffisant_rights_valid_token ()
 
None test_bad_request_invalid_token ()
 
None test_bad_request_valid_token ()
 
None test_internal_server_error_invalid_token ()
 
None test_internal_server_error_valid_token ()
 
None test_unauthorized_invalid_token ()
 
None test_unauthorized_valid_token ()
 
None test_invalid_verification_code_invalid_token ()
 
None test_invalid_verification_code_valid_token ()
 
None test_user_not_found_invalid_token ()
 
None test_user_not_found_valid_token ()
 
None test_no_access_token_invalid_token ()
 
None test_no_access_token_valid_token ()
 
None test_provider_not_found_invalid_token ()
 
None test_provider_not_found_valid_token ()
 
None test_provider_not_given_invalid_token ()
 
None test_provider_not_given_valid_token ()
 
None test_missing_variable_in_body_invalid_token ()
 
None test_missing_variable_in_body_valid_token ()
 

Variables

 ERROR = TCONST.ERROR
 
 SUCCESS = TCONST.SUCCESS
 
 DEBUG = TCONST.DEBUG
 
 RDI = RuntimeData(TCONST.SERVER_HOST, TCONST.PORT, "Area", ERROR, SUCCESS)
 
 app
 
 endpoints_initialised
 
 runtime_data
 
 success
 
 error
 
 debug
 
 BRI
 
 boilerplate_responses_initialised
 
 boilerplate_non_http_initialised
 
 runtime_data_initialised
 
 database_link
 
 url
 
 port
 
 username
 
 password
 
 db_name
 
 PHI
 

Detailed Description

_summary_
    File in charge of testing the boilerplate Boilerplate non http class.

Function Documentation

◆ _register_fake_user()

None test_boilerplate_responses._register_fake_user ( )
protected
_summary_
    Function in charge of registering a fake user.

Definition at line 67 of file test_boilerplate_responses.py.

◆ _sign_fake_user_out()

None test_boilerplate_responses._sign_fake_user_out ( )
protected
_summary_
    Function in charge of signing out a fake user.

Definition at line 129 of file test_boilerplate_responses.py.

◆ _sing_fake_user_in()

None test_boilerplate_responses._sing_fake_user_in ( )
protected
_summary_
    Function in charge of signing in a fake user.

Definition at line 98 of file test_boilerplate_responses.py.

◆ _unregister_fake_user()

None test_boilerplate_responses._unregister_fake_user ( )
protected
_summary_
    Function in charge of deregistering a fake user.

Definition at line 88 of file test_boilerplate_responses.py.

◆ test_bad_request_invalid_token()

None test_boilerplate_responses.test_bad_request_invalid_token ( )
_summary_
    Function in charge of testing the insuffisant rights function.

Definition at line 345 of file test_boilerplate_responses.py.

◆ test_bad_request_valid_token()

None test_boilerplate_responses.test_bad_request_valid_token ( )
_summary_
    Function in charge of testing the insuffisant rights function.

Definition at line 366 of file test_boilerplate_responses.py.

◆ test_build_response_body_error()

None test_boilerplate_responses.test_build_response_body_error ( )
_summary_
    Function in charge of testing the build response body function.

Definition at line 164 of file test_boilerplate_responses.py.

◆ test_build_response_body_error_logged_in()

None test_boilerplate_responses.test_build_response_body_error_logged_in ( )
_summary_
    Function in charge of testing the build response body function.

Definition at line 213 of file test_boilerplate_responses.py.

◆ test_build_response_body_no_error()

None test_boilerplate_responses.test_build_response_body_no_error ( )
_summary_
    Function in charge of testing the build response body function.

Definition at line 140 of file test_boilerplate_responses.py.

◆ test_build_response_body_no_error_logged_in()

None test_boilerplate_responses.test_build_response_body_no_error_logged_in ( )
_summary_
    Function in charge of testing the build response body function.

Definition at line 188 of file test_boilerplate_responses.py.

◆ test_insuffisant_rights_invalid_token()

None test_boilerplate_responses.test_insuffisant_rights_invalid_token ( )
_summary_
    Function in charge of testing the insuffisant rights function.

Definition at line 301 of file test_boilerplate_responses.py.

◆ test_insuffisant_rights_valid_token()

None test_boilerplate_responses.test_insuffisant_rights_valid_token ( )
_summary_
    Function in charge of testing the insuffisant rights function.

Definition at line 322 of file test_boilerplate_responses.py.

◆ test_internal_server_error_invalid_token()

None test_boilerplate_responses.test_internal_server_error_invalid_token ( )
_summary_
    Function in charge of testing the insuffisant rights function.

Definition at line 389 of file test_boilerplate_responses.py.

◆ test_internal_server_error_valid_token()

None test_boilerplate_responses.test_internal_server_error_valid_token ( )
_summary_
    Function in charge of testing the insuffisant rights function.

Definition at line 410 of file test_boilerplate_responses.py.

◆ test_invalid_token()

None test_boilerplate_responses.test_invalid_token ( )
_summary_
    Function in charge of testing the invalid token function.

Definition at line 238 of file test_boilerplate_responses.py.

◆ test_invalid_verification_code_invalid_token()

None test_boilerplate_responses.test_invalid_verification_code_invalid_token ( )
_summary_
    Function in charge of testing the insuffisant rights function.

Definition at line 477 of file test_boilerplate_responses.py.

◆ test_invalid_verification_code_valid_token()

None test_boilerplate_responses.test_invalid_verification_code_valid_token ( )
_summary_
    Function in charge of testing the insuffisant rights function.

Definition at line 498 of file test_boilerplate_responses.py.

◆ test_login_failed()

None test_boilerplate_responses.test_login_failed ( )
_summary_
    Function in charge of testing the login failed function.

Definition at line 280 of file test_boilerplate_responses.py.

◆ test_missing_variable_in_body_invalid_token()

None test_boilerplate_responses.test_missing_variable_in_body_invalid_token ( )
_summary_
    Function in charge of testing the insuffisant rights function.

Definition at line 697 of file test_boilerplate_responses.py.

◆ test_missing_variable_in_body_valid_token()

None test_boilerplate_responses.test_missing_variable_in_body_valid_token ( )
_summary_
    Function in charge of testing the insuffisant rights function.

Definition at line 718 of file test_boilerplate_responses.py.

◆ test_no_access_token_invalid_token()

None test_boilerplate_responses.test_no_access_token_invalid_token ( )
_summary_
    Function in charge of testing the insuffisant rights function.

Definition at line 565 of file test_boilerplate_responses.py.

◆ test_no_access_token_valid_token()

None test_boilerplate_responses.test_no_access_token_valid_token ( )
_summary_
    Function in charge of testing the insuffisant rights function.

Definition at line 586 of file test_boilerplate_responses.py.

◆ test_not_logged_in()

None test_boilerplate_responses.test_not_logged_in ( )
_summary_
    Function in charge of testing the not logged in function.

Definition at line 259 of file test_boilerplate_responses.py.

◆ test_provider_not_found_invalid_token()

None test_boilerplate_responses.test_provider_not_found_invalid_token ( )
_summary_
    Function in charge of testing the insuffisant rights function.

Definition at line 609 of file test_boilerplate_responses.py.

◆ test_provider_not_found_valid_token()

None test_boilerplate_responses.test_provider_not_found_valid_token ( )
_summary_
    Function in charge of testing the insuffisant rights function.

Definition at line 630 of file test_boilerplate_responses.py.

◆ test_provider_not_given_invalid_token()

None test_boilerplate_responses.test_provider_not_given_invalid_token ( )
_summary_
    Function in charge of testing the insuffisant rights function.

Definition at line 653 of file test_boilerplate_responses.py.

◆ test_provider_not_given_valid_token()

None test_boilerplate_responses.test_provider_not_given_valid_token ( )
_summary_
    Function in charge of testing the insuffisant rights function.

Definition at line 674 of file test_boilerplate_responses.py.

◆ test_unauthorized_invalid_token()

None test_boilerplate_responses.test_unauthorized_invalid_token ( )
_summary_
    Function in charge of testing the insuffisant rights function.

Definition at line 433 of file test_boilerplate_responses.py.

◆ test_unauthorized_valid_token()

None test_boilerplate_responses.test_unauthorized_valid_token ( )
_summary_
    Function in charge of testing the insuffisant rights function.

Definition at line 454 of file test_boilerplate_responses.py.

◆ test_user_not_found_invalid_token()

None test_boilerplate_responses.test_user_not_found_invalid_token ( )
_summary_
    Function in charge of testing the insuffisant rights function.

Definition at line 521 of file test_boilerplate_responses.py.

◆ test_user_not_found_valid_token()

None test_boilerplate_responses.test_user_not_found_valid_token ( )
_summary_
    Function in charge of testing the insuffisant rights function.

Definition at line 542 of file test_boilerplate_responses.py.

Variable Documentation

◆ app

test_boilerplate_responses.app

Definition at line 30 of file test_boilerplate_responses.py.

◆ boilerplate_non_http_initialised

test_boilerplate_responses.boilerplate_non_http_initialised

Definition at line 42 of file test_boilerplate_responses.py.

◆ boilerplate_responses_initialised

test_boilerplate_responses.boilerplate_responses_initialised

Definition at line 41 of file test_boilerplate_responses.py.

◆ BRI

test_boilerplate_responses.BRI
Initial value:
1= BoilerplateResponses(
2 runtime_data=RDI,
3 debug=DEBUG
4)

Definition at line 37 of file test_boilerplate_responses.py.

◆ database_link

test_boilerplate_responses.database_link

Definition at line 49 of file test_boilerplate_responses.py.

◆ db_name

test_boilerplate_responses.db_name

Definition at line 54 of file test_boilerplate_responses.py.

◆ DEBUG

test_boilerplate_responses.DEBUG = TCONST.DEBUG

Definition at line 26 of file test_boilerplate_responses.py.

◆ debug

test_boilerplate_responses.debug

Definition at line 35 of file test_boilerplate_responses.py.

◆ endpoints_initialised

test_boilerplate_responses.endpoints_initialised

Definition at line 31 of file test_boilerplate_responses.py.

◆ ERROR

test_boilerplate_responses.ERROR = TCONST.ERROR

Definition at line 24 of file test_boilerplate_responses.py.

◆ error

test_boilerplate_responses.error

Definition at line 34 of file test_boilerplate_responses.py.

◆ password

test_boilerplate_responses.password

Definition at line 53 of file test_boilerplate_responses.py.

◆ PHI

test_boilerplate_responses.PHI
Initial value:
1= PasswordHandling(
2 error=ERROR,
3 success=SUCCESS,
4 debug=DEBUG
5)

Definition at line 60 of file test_boilerplate_responses.py.

◆ port

test_boilerplate_responses.port

Definition at line 51 of file test_boilerplate_responses.py.

◆ RDI

test_boilerplate_responses.RDI = RuntimeData(TCONST.SERVER_HOST, TCONST.PORT, "Area", ERROR, SUCCESS)

Definition at line 29 of file test_boilerplate_responses.py.

◆ runtime_data

test_boilerplate_responses.runtime_data

Definition at line 32 of file test_boilerplate_responses.py.

◆ runtime_data_initialised

test_boilerplate_responses.runtime_data_initialised

Definition at line 43 of file test_boilerplate_responses.py.

◆ SUCCESS

test_boilerplate_responses.SUCCESS = TCONST.SUCCESS

Definition at line 25 of file test_boilerplate_responses.py.

◆ success

test_boilerplate_responses.success

Definition at line 33 of file test_boilerplate_responses.py.

◆ url

test_boilerplate_responses.url

Definition at line 50 of file test_boilerplate_responses.py.

◆ username

test_boilerplate_responses.username

Definition at line 52 of file test_boilerplate_responses.py.