crash.software
Projects
Pull Requests
Issues
Builds
graphql-engine
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
graphql-engine
Files
🤬
Sign In
release/v2.11
ROOT
/
server
/
tests-py
/
test_v1_queries.py
Search
History
830 lines
|
ISO-8859-1
|
33 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
check_query_f
pytest
usefixtures
use_mutation_fixtures
TestDropNoColsTable
test_drop_no_cols_table
(self,hge_ctx)
TestV1General
test_query_string_input_err
(self,hge_ctx)
test_query_unknown_type_err
(self,hge_ctx)
test_query_args_as_string_err
(self,hge_ctx)
test_query_v2_invalid_version
(self,hge_ctx)
dir
(cls)
TestV1SelectBasic
test_select_query_author_with_admin_role
(self,hge_ctx)
test_nested_select_article_author
(self,hge_ctx)
test_nested_select_article_author_alias_for_relationship
(self,hge_ctx)
test_select_author_where
(self,hge_ctx)
test_select_table_not_present
(self,hge_ctx)
test_select_col_not_present
(self,hge_ctx)
test_select_nested_where_query
(self,hge_ctx)
test_select_query_user
(self,hge_ctx)
dir
(cls)
TestV1SelectLimits
test_limit_1
(self,hge_ctx)
test_limit_2
(self,hge_ctx)
test_err_str_limit_error
(self,hge_ctx)
test_err_neg_limit_error
(self,hge_ctx)
dir
(cls)
TestV1SelectOffset
test_offset_1_limit_2
(self,hge_ctx)
test_offset_2_limit_1
(self,hge_ctx)
test_int_as_string_offset_error
(self,hge_ctx)
test_err_neg_offset_error
(self,hge_ctx)
dir
(cls)
TestV1SelectBoolExpBasic
test_author_article_where_not_equal
(self,hge_ctx)
test_author_article_where_greater_than
(self,hge_ctx)
test_author_article_where_greater_than_or_equal
(self,hge_ctx)
test_author_article_where_less_than
(self,hge_ctx)
test_author_article_where_less_than_or_equal
(self,hge_ctx)
test_author_article_where_in
(self,hge_ctx)
test_author_article_where_nin
(self,hge_ctx)
test_order_delivered_at_is_null
(self,hge_ctx)
test_order_delivered_at_is_not_null
(self,hge_ctx)
test_author_article_where_not_less_than
(self,hge_ctx)
test_article_author_is_published_and_registered
(self,hge_ctx)
test_article_author_not_published_nor_registered
(self,hge_ctx)
dir
(cls)
TestV1SelectBoolExpSearch
test_city_where_like
(self,hge_ctx)
test_city_where_not_like
(self,hge_ctx)
test_city_where_ilike
(self,hge_ctx)
test_city_where_not_ilike
(self,hge_ctx)
test_city_where_similar
(self,hge_ctx)
test_city_where_not_similar
(self,hge_ctx)
test_city_where_regex
(self,hge_ctx)
test_city_where_not_regex
(self,hge_ctx)
test_city_where_iregex
(self,hge_ctx)
test_city_where_not_iregex
(self,hge_ctx)
test_project_where_ilike
(self,hge_ctx)
dir
(cls)
TestV1SelectBoolExpJSONB
test_select_article_author_jsonb_contained_in_bestseller_latest
(self,hge_ctx)
test_select_article_author_jsonb_contained_in_latest
(self,hge_ctx)
test_select_article_author_jsonb_contains_latest
(self,hge_ctx)
test_select_author_article_jsonb_contains_bestseller
(self,hge_ctx)
test_select_product_jsonb_has_key_sim_type
(self,hge_ctx)
dir
(cls)
TestV1SelectBoolExpPostGIS
test_query_st_equals
(self,hge_ctx)
test_query_st_contains
(self,hge_ctx)
test_query_st_touches
(self,hge_ctx)
test_query_not_st_intersects
(self,hge_ctx)
test_query_st_d_within
(self,hge_ctx)
test_query_geog_stdwithin
(self,hge_ctx)
test_query_geog_stdwithin_sph
(self,hge_ctx)
test_query_geog_stintersects
(self,hge_ctx)
test_query_cast_geometry_to_geography
(self,hge_ctx)
test_query_cast_geography_to_geometry
(self,hge_ctx)
test_query_illegal_cast_is_not_allowed
(self,hge_ctx)
dir
(cls)
TestV1SelectPermissions
test_user_select_unpublished_articles
(self,hge_ctx)
test_user_only_other_users_published_articles
(self,hge_ctx)
test_anonymous_only_published_articles
(self,hge_ctx)
test_user_cannot_access_remarks_col
(self,hge_ctx)
test_user_can_query_geometry_values_filter
(self,hge_ctx)
test_user_can_query_geometry_values_filter_session_vars
(self,hge_ctx)
test_user_can_query_geog_filter
(self,hge_ctx)
test_user_can_query_geog_filter_session_vars
(self,hge_ctx)
test_user_can_query_jsonb_values_filter
(self,hge_ctx)
test_user_can_query_jsonb_values_filter_session_vars
(self,hge_ctx)
test_user_query_auction
(self,hge_ctx)
dir
(cls)
TestV1InsertBasic
test_insert_author
(self,hge_ctx)
test_insert_author_col_not_present_err
(self,hge_ctx)
test_insert_null_col_value
(self,hge_ctx)
test_insert_nullable_enum_field
(self,hge_ctx)
dir
(cls)
TestV1InsertOnConflict
test_author_on_conflict_update
(self,hge_ctx)
test_on_conflict_no_action_specified
(self,hge_ctx)
test_on_conflict_ignore
(self,hge_ctx)
test_err_missing_article_constraint
(self,hge_ctx)
test_err_unexpected_action
(self,hge_ctx)
test_err_unexpected_constraint
(self,hge_ctx)
dir
(cls)
TestV1InsertPermissions
test_user_role_on_conflict_update
(self,hge_ctx)
test_user_role_on_conflict_ignore
(self,hge_ctx)
test_role_has_no_permissions_err
(self,hge_ctx)
test_author_user_role_insert_check_perm_success
(self,hge_ctx)
test_user_role_insert_check_is_registered_fail
(self,hge_ctx)
test_user_role_insert_check_user_id_fail
(self,hge_ctx)
test_student_role_insert_check_bio_success
(self,hge_ctx)
test_student_role_insert_check_bio_fail
(self,hge_ctx)
test_resident_1_modifies_resident_2_upsert
(self,hge_ctx)
dir
(cls)
TestV1UpdateBasic
test_set_author_name
(self,hge_ctx)
test_set_person_details
(self,hge_ctx)
test_person_id_inc
(self,hge_ctx)
test_product_mul_price
(self,hge_ctx)
test_product_set_default_price
(self,hge_ctx)
test_no_operator_err
(self,hge_ctx)
test_no_where_clause_err
(self,hge_ctx)
dir
(cls)
TestV1UpdatePermissions
test_user_can_update_unpublished_article
(self,hge_ctx)
test_user_cannot_update_published_version_col
(self,hge_ctx)
test_user_cannot_update_another_users_article
(self,hge_ctx)
test_user_cannot_update_id_col
(self,hge_ctx)
test_user_update_resident_preset_error
(self,hge_ctx)
test_user_update_resident_preset
(self,hge_ctx)
test_user_update_resident_preset_session_var
(self,hge_ctx)
dir
(cls)
TestV1CountBasic
test_count_authors
(self,hge_ctx)
test_count_published_articles
(self,hge_ctx)
test_count_unpublished_articles
(self,hge_ctx)
test_count_distinct_authors_with_published_articles
(self,hge_ctx)
test_count_articles_registered_authors
(self,hge_ctx)
test_count_articles_non_registered_authors
(self,hge_ctx)
test_count_distinct_col_not_present_err
(self,hge_ctx)
test_count_distinct_authors_with_unpublished_articles
(self,hge_ctx)
dir
(cls)
TestV1CountPermissions
test_count_user_has_no_select_permission_err
(self,hge_ctx)
test_count_other_users_unpublished_articles
(self,hge_ctx)
dir
(cls)
TestV1Delete
test_delete_author
(self,hge_ctx)
dir
(cls)
TestRunSQL
test_select_query
(self,hge_ctx)
test_select_query_v2
(self,hge_ctx)
test_select_query_read_only
(self,hge_ctx)
test_set_timezone
(self,hge_ctx)
test_sql_timezone_error
(self,hge_ctx)
test_sql_query_as_user_error
(self,hge_ctx)
test_sql_query_as_user_error_v2
(self,hge_ctx)
test_sql_rename_table
(self,hge_ctx)
test_sql_rename_columns_article
(self,hge_ctx)
test_sql_rename_columns_author
(self,hge_ctx)
test_sql_rename_table_and_column
(self,hge_ctx)
test_sql_alter_test_bool_col
(self,hge_ctx)
test_sql_alter_test_id
(self,hge_ctx)
dir
(cls)
TestRelationships
test_object_relationship_foreign_key
(self,hge_ctx)
test_create_object_relationship_as_not_admin_error
(self,hge_ctx)
test_object_relationship_col_not_foreign_key_error
(self,hge_ctx)
test_object_relationship_foreign_key_non_public_schema
(self,hge_ctx)
test_object_relationship_manual
(self,hge_ctx)
test_array_relationship_foreign_key
(self,hge_ctx)
test_create_array_relationship_as_not_admin_error
(self,hge_ctx)
test_array_relationship_col_not_foreign_key_error
(self,hge_ctx)
test_array_relationship_foreign_key_non_public_schema
(self,hge_ctx)
test_array_relationship_manual
(self,hge_ctx)
test_object_relationship_one_to_one
(self,hge_ctx)
dir
(cls)
TestTrackTables
test_track_table_function_same_name
(self,hge_ctx)
test_track_function_table_same_name
(self,hge_ctx)
test_track_untrack_table
(self,hge_ctx)
test_track_untrack_materialized_view
(self,hge_ctx)
test_track_untrack_table_with_deps
(self,hge_ctx)
test_track_untrack_table_non_public_schema
(self,hge_ctx)
test_track_untrack_table_as_not_admin_error
(self,hge_ctx)
test_track_table_with_non_graphql_compliant_name
(self,hge_ctx)
dir
(cls)
TestCreatePermission
test_create_permission_admin_role_error
(self,hge_ctx)
test_create_permission_user_role_error
(self,hge_ctx)
test_create_author_insert_permission_long_role
(self,hge_ctx)
dir
(cls)
TestNonEmptyText
test_create_event_trigger
(self,hge_ctx)
test_create_insert_permission
(self,hge_ctx)
test_create_query_collection
(self,hge_ctx)
test_create_query_collection_queryname
(self,hge_ctx)
test_create_object_relationship
(self,hge_ctx)
test_create_remote_schema
(self,hge_ctx)
dir
(cls)
TestSetTableIsEnum
dir
(cls)
test_add_and_remove
(self,hge_ctx)
test_add_invalid
(self,hge_ctx)
test_add_test_schema_enum_table
(self,hge_ctx)
test_relationship_with_inconsistent_enum_table
(self,hge_ctx)
test_custom_enum_table_name
(self,hge_ctx)
TestSetTableIsEnumSetAndDelayedReload
dir
(cls)
test_introspect_enum_values
(self,hge_ctx)
TestSetTableCustomFields
dir
(cls)
test_set_and_unset
(self,hge_ctx)
test_set_invalid_table
(self,hge_ctx)
test_alter_column
(self,hge_ctx)
test_conflict_with_relationship
(self,hge_ctx)
test_column_field_swap
(self,hge_ctx)
test_relationship_conflict_with_custom_column
(self,hge_ctx)
TestSetTableCustomization
dir
(cls)
test_set_and_unset
(self,hge_ctx)
test_set_invalid_table
(self,hge_ctx)
test_alter_column
(self,hge_ctx)
test_conflict_with_relationship
(self,hge_ctx)
test_column_field_swap
(self,hge_ctx)
test_relationship_conflict_with_custom_column
(self,hge_ctx)
test_alter_table_name_with_custom_name
(self,hge_ctx)
test_conflicting_custom_table_name
(self,hge_ctx)
test_use_deprecated_custom_column_names
(self,hge_ctx)
TestComputedFields
dir
(cls)
test_add_computed_fields_errors
(self,hge_ctx)
test_add_and_drop
(self,hge_ctx)
test_create_permissions
(self,hge_ctx)
test_run_sql
(self,hge_ctx)
TestBulkQuery
dir
(cls)
test_run_bulk
(self,hge_ctx)
test_run_bulk_with_select_and_writes
(self,hge_ctx)
test_run_bulk_with_select_and_reads
(self,hge_ctx)
TestGraphQLQueryBoolExpLtree
test_select_path_where_ancestor
(self,hge_ctx,transport)
test_select_path_where_ancestor_array
(self,hge_ctx,transport)
test_select_path_where_descendant
(self,hge_ctx,transport)
test_select_path_where_descendant_array
(self,hge_ctx,transport)
test_select_path_where_matches
(self,hge_ctx,transport)
test_select_path_where_matches_array
(self,hge_ctx,transport)
test_select_path_where_matches_ltxtquery
(self,hge_ctx,transport)
dir
(cls)
All occurrences
Please wait...
Page is in error, reload to recover