Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mshs-Poitiers
Plateforme
nakala-pycon
Commits
7f015403
Commit
7f015403
authored
Oct 22, 2021
by
Michael Nauge
Browse files
Create test_nklUtils.py
parent
95c0cb39
Changes
1
Hide whitespace changes
Inline
Side-by-side
nakalapycon/src/test_nklUtils.py
0 → 100644
View file @
7f015403
# -*- coding: utf-8 -*-
"""
Created on Mon Aug 23 16:39:24 2021
@author: Michael Nauge (Université de Poitiers)
"""
import
NklTarget
as
nklT
import
nklUtils
as
nklUt
def
put_collections_datas_rights_test
():
# un objet de connexion à nakala test (avec key api)
# unakala2 : f41f5957-d396-3bb9-ce35-a4692773f636
nklT_test
=
nklT
.
NklTarget
(
isNakalaProd
=
False
,
apiKey
=
"f41f5957-d396-3bb9-ce35-a4692773f636"
)
collectionId
=
"10.34847/nkl.b0dd3qxb"
userGroupId
=
"cb5f5980-056e-11ec-9b31-52540084ccd3"
role
=
"ROLE_ADMIN"
listR
=
nklUt
.
put_collections_datas_rights
(
nklT_test
,
collectionId
,
userGroupId
,
role
)
for
rep
in
listR
:
print
(
rep
)
put_collections_datas_rights_test
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment