We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3302229 commit 57fc2ddCopy full SHA for 57fc2dd
tests/utils/graph_generator.py
@@ -106,6 +106,17 @@ def component(
106
107
return Component(self.new_id()[category], category, comp_type)
108
109
+ def components(self, *component_categories: ComponentCategory) -> list[Component]:
110
+ """Create a list of components with the next available id for each category.
111
+
112
+ Args:
113
+ *component_categories: the component categories
114
115
+ Returns:
116
+ the given components.
117
+ """
118
+ return [self.component(category) for category in component_categories]
119
120
@staticmethod
121
def grid() -> Component:
122
"""Get a new grid component with default id.
0 commit comments