fasjson.tests package¶
Subpackages¶
- fasjson.tests.unit package
- Submodules
- fasjson.tests.unit.test_lib_ldap module
- fasjson.tests.unit.test_lib_ldap_client module
mock_connection()
test_check_membership()
test_check_membership_duplicate()
test_check_membership_not_member()
test_do_search_no_server_control()
test_do_search_other_server_control()
test_do_search_paged()
test_get_group()
test_get_group_members()
test_get_group_not_found()
test_get_group_sponsors()
test_get_group_sponsors_empty()
test_get_group_sponsors_none()
test_get_groups()
test_get_groups_with_attrs()
test_get_paged_groups()
test_get_paged_search_filters()
test_get_paged_search_no_results()
test_get_user()
test_get_user_agreements()
test_get_user_groups()
test_get_user_groups_no_group()
test_get_user_not_found()
test_get_user_with_attrs()
test_get_users()
test_list_sponsors_uid()
test_search_users()
test_search_users_filters()
test_sponsors_to_users()
test_sponsors_to_users_empty()
test_whoami_service()
test_whoami_user()
- fasjson.tests.unit.test_lib_ldap_converters module
- fasjson.tests.unit.test_lib_ldap_result module
- fasjson.tests.unit.test_web_app module
- fasjson.tests.unit.test_web_base_routes module
- fasjson.tests.unit.test_web_extension_ipacfg module
- fasjson.tests.unit.test_web_namespace module
- fasjson.tests.unit.test_web_resource_base module
- fasjson.tests.unit.test_web_resource_v1_certs module
- fasjson.tests.unit.test_web_resource_v1_groups module
mock_ldap_client()
test_group_is_member_false()
test_group_is_member_true()
test_group_members_error()
test_group_members_success()
test_group_members_with_mask()
test_group_not_found()
test_group_sponsors_error()
test_group_sponsors_success()
test_group_sponsors_with_mask()
test_group_starting_with_number()
test_group_success()
test_group_with_mask()
test_groups_error()
test_groups_no_groups()
test_groups_success()
test_groups_with_mask()
- fasjson.tests.unit.test_web_resource_v1_me module
- fasjson.tests.unit.test_web_resource_v1_search module
ldap_with_search_result()
mock_ldap_client()
test_search_bad_json_body()
test_search_json_body()
test_search_user_by_group()
test_search_user_gitlab()
test_search_user_no_args()
test_search_user_not_found()
test_search_user_outside_page_range()
test_search_user_page_size_none()
test_search_user_page_size_too_big()
test_search_user_page_size_zero()
test_search_user_private()
test_search_user_short_search_term()
test_search_user_success()
- fasjson.tests.unit.test_web_resource_v1_users module
mock_ldap_client()
test_user_agreements_error()
test_user_agreements_success()
test_user_error()
test_user_groups_error()
test_user_groups_success()
test_user_groups_with_mask()
test_user_no_private_info()
test_user_private()
test_user_private_self()
test_user_success()
test_user_with_mask()
test_users_success()
test_users_with_mask()
- fasjson.tests.unit.test_web_util_ipa module
- fasjson.tests.unit.test_web_utils_pagination module
- fasjson.tests.unit.utils module
- Module contents
Submodules¶
fasjson.tests.conftest module¶
- class fasjson.tests.conftest.GSSAwareClient(*args, **kwargs)[source]¶
Bases:
FlaskClient
- open(*args, **kwargs)[source]¶
Generate an environ dict from the given arguments, make a request to the application using it, and return the response.
- Parameters:
args – Passed to
EnvironBuilder
to create the environ for the request. If a single arg is passed, it can be an existingEnvironBuilder
or an environ dict.buffered – Convert the iterator returned by the app into a list. If the iterator has a
close()
method, it is called automatically.follow_redirects – Make additional requests to follow HTTP redirects until a non-redirect status is returned.
TestResponse.history
lists the intermediate responses.
Changed in version 2.1: Removed the
as_tuple
parameter.Changed in version 2.0: The request input stream is closed when calling
response.close()
. Input streams for redirects are automatically closed.Changed in version 0.5: If a dict is provided as file in the dict for the
data
parameter the content type has to be calledcontent_type
instead ofmimetype
. This change was made for consistency withwerkzeug.FileWrapper
.Changed in version 0.5: Added the
follow_redirects
parameter.