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 393d7b0 commit 4c236b4Copy full SHA for 4c236b4
tests/resources/test_card.py
@@ -14,6 +14,25 @@ def test_import(self):
14
15
def test_list(self):
16
"""Ensure Card.list() returns a list of Card instances."""
17
+ # fixture
18
+ card = Card.create(
19
+ name="My Card",
20
+ dataset_query={
21
+ "type": "query",
22
+ "query": {
23
+ "source-table": 2,
24
+ "aggregation": [["count"]],
25
+ "breakout": [["field", 12, {"temporal-unit": "month"}]],
26
+ },
27
+ "database": 1,
28
29
+ visualization_settings={
30
+ "graph.dimensions": ["CREATED_AT"],
31
+ "graph.metrics": ["count"],
32
33
+ display="line",
34
+ )
35
+
36
cards = Card.list()
37
38
self.assertIsInstance(cards, list)
0 commit comments