File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1299,6 +1299,7 @@ class PublicCollOut(BaseMongoModel):
1299
1299
"""Collection output model with annotations."""
1300
1300
1301
1301
name : str
1302
+ oid : UUID
1302
1303
description : Optional [str ] = None
1303
1304
caption : Optional [str ] = None
1304
1305
Original file line number Diff line number Diff line change 17
17
UPDATED_CAPTION = "Updated caption"
18
18
19
19
NON_PUBLIC_COLL_FIELDS = (
20
- "oid" ,
21
20
"modified" ,
22
21
"crawlCount" ,
23
22
"pageCount" ,
@@ -877,6 +876,7 @@ def test_list_public_collections(
877
876
assert len (collections ) == 2
878
877
for collection in collections :
879
878
assert collection ["id" ] in (_public_coll_id , _second_public_coll_id )
879
+ assert collection ["oid" ]
880
880
assert collection ["name" ]
881
881
assert collection ["dateEarliest" ]
882
882
assert collection ["dateLatest" ]
@@ -1033,6 +1033,7 @@ def test_list_public_colls_home_url_thumbnail():
1033
1033
1034
1034
for coll in collections :
1035
1035
assert coll ["id" ] in (_public_coll_id , _second_public_coll_id )
1036
+ assert coll ["oid" ]
1036
1037
assert coll ["name" ]
1037
1038
assert coll ["resources" ]
1038
1039
assert coll ["dateEarliest" ]
@@ -1063,14 +1064,15 @@ def test_list_public_colls_home_url_thumbnail():
1063
1064
assert coll ["description" ]
1064
1065
1065
1066
1066
- def test_get_public_collection ():
1067
+ def test_get_public_collection (default_org_id ):
1067
1068
r = requests .get (
1068
1069
f"{ API_PREFIX } /public-collections/{ default_org_slug } /collections/{ _public_coll_id } "
1069
1070
)
1070
1071
assert r .status_code == 200
1071
1072
coll = r .json ()
1072
1073
1073
1074
assert coll ["id" ] == _public_coll_id
1075
+ assert coll ["oid" ] == default_org_id
1074
1076
assert coll ["name" ]
1075
1077
assert coll ["resources" ]
1076
1078
assert coll ["dateEarliest" ]
You can’t perform that action at this time.
0 commit comments