@pytest.mark.xfail(reason="DatasetAccessPolicy.scope_queryset does not work correctly for anonymous users")deftest_directory_permissions_dataset_anon_published(client,dataset_with_files):dataset_with_files.publish()res=client.get("/v3/directories",{"dataset":dataset_with_files.id,"storage_service":dataset_with_files.file_set.storage.storage_service,"csc_project":dataset_with_files.file_set.storage.csc_project,},)assertres.status_code==200assertres.data["count"]==2