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_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
830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 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 |
|
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.