test_dataset#
test_create_dataset#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_update_dataset#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_update_dataset_with_project#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_filter_pid#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_search_pid#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_aggregation_and_filters#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_create_dataset_invalid_catalog#
test_create_dataset_invalid_language#
Try creating a dataset with an improperly formatted 'language' field. Each error case has a corresponding error message.
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_delete_dataset#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_get_removed_dataset#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_list_datasets_with_ordering#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_list_datasets_with_if_modified_since_header#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_list_datasets_with_bad_if_modified_since_header#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_list_datasets_with_default_pagination#
test_list_datasets_fields_param#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_list_datasets_faulty_fields_param#
test_list_datasets_with_invalid_query_param#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_list_datasets_with_pagination#
test_list_datasets_with_no_pagination#
test_create_dataset_with_metadata_owner#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_patch_metadata_owner#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_put_dataset_by_user#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_patch_metadata_owner_not_allowed#
End-user cannot use custom metadata owner values.
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_owned_dataset#
End-user cannot use custom metadata owner values.
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_create_dataset_with_actor#
test_modify_dataset_actor_roles#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_create_dataset_with_other_identifiers#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_update_dataset_with_other_identifiers#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_dataset_put_maximal_and_minimal#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_dataset_patch_maximal_and_minimal#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_dataset_put_remove_fileset#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_dataset_restricted#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_create_dataset_require_data_catalog#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_create_dataset_draft_without_catalog#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_flush_dataset_by_service#
Flush should delete dataset from database.
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_flush_dataset_by_user#
Flush should not be allowed for regular user.
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_flush_draft#
Flush should be allowed for drafts.
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
ida_dataset#
ida_dataset_other#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
pas_dataset#
test_filter_by_storage_service#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_filter_by_csc_project#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_filter_by_has_files#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_empty_description#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_api_version#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_dataset_last_modified_by#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_dataset_expanded_catalog#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_many_actors#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_dataset_search_entry#
Check that search entry contains correct values from dataset.
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_create_dataset_with_extra_fields#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_dataset_citation#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_get_dataset_include_nulls#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_missing_required_fields#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 |
|
test_missing_restriction_grounds#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_unnecessary_restriction_grounds#
Source code in tests/unit/apps/core/api/dataset/test_dataset.py
test_get_dataset_no_multiple_objects_error#
Check that multiple groups in dataset_groups_admin don't produce MultipleObjectsReturned error in query.