File tree Expand file tree Collapse file tree
tests/integration/queries Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- from typing import TYPE_CHECKING
1+ from typing import TYPE_CHECKING , List
22
33from indico .client .request import GraphQLRequest , PagedRequestV2
44from indico .types .component_blueprint import BlueprintPage , BlueprintTags
@@ -112,7 +112,7 @@ class GetGalleryTags(GraphQLRequest[BlueprintTags]):
112112 def __init__ (
113113 self ,
114114 component_family : "Optional[str]" = None ,
115- tag_categories : "Optional[list [str]]" = None ,
115+ tag_categories : "Optional[List [str]]" = None ,
116116 ):
117117 self .component_family = component_family
118118 self .tag_categories = tag_categories
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ class ListWorkflows(GraphQLRequest["List[Workflow]"]):
7676 }
7777
7878 }
79+ datasetId
7980 }
8081 }
8182 }
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ class Workflow(BaseType):
4545 id : int
4646 name : str
4747 status : str
48+ dataset_id : int
4849 review_enabled : bool
4950 auto_review_enabled : bool
5051 components : List [WorkflowComponent ]
Original file line number Diff line number Diff line change 11import pytest
2+
23from indico .client import IndicoClient
3- from indico .queries .gallery import ListGallery , GetGalleryTags
4+ from indico .queries .gallery import GetGalleryTags , ListGallery
45from indico .types .component_blueprint import BlueprintPage , BlueprintTags
56
67
@@ -76,9 +77,9 @@ def test_list_gallery_pagination(indico):
7677 if len (blueprints ) >= 2 :
7778 # Check that we have unique blueprints
7879 blueprint_ids = [bp .id for bp in blueprints ]
79- assert len (blueprint_ids ) == len (set ( blueprint_ids )), (
80- "Duplicate blueprints found in pagination"
81- )
80+ assert len (blueprint_ids ) == len (
81+ set ( blueprint_ids )
82+ ), "Duplicate blueprints found in pagination"
8283
8384
8485def test_get_gallery_tags (indico ):
You can’t perform that action at this time.
0 commit comments