Skip to content

Commit 23c8647

Browse files
committed
Add access check to CKAN test
1 parent 8603b1d commit 23c8647

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/hdx/api/test_ckan.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from hdx.api.locations import Locations
2020
from hdx.data.dataset import Dataset
2121
from hdx.data.resource import Resource
22+
from hdx.data.user import User
2223
from hdx.data.vocabulary import Vocabulary
2324
from hdx.location.country import Country
2425
from hdx.utilities.dateparse import now_utc
@@ -35,6 +36,7 @@ def configuration(self):
3536
user_agent="test",
3637
hdx_key=hdx_key,
3738
)
39+
User.check_current_user_write_access("5a63012e-6c41-420c-8c33-e84b277fdc90")
3840
Locations._validlocations = None
3941
Country.countriesdata(use_live=False)
4042
Vocabulary._approved_vocabulary = None

0 commit comments

Comments
 (0)