Skip to content

Commit 4c236b4

Browse files
author
Charles Larivier
committed
fix: add fixture in CardTests.test_list()
Signed-off-by: Charles Larivier <charles@dribbble.com>
1 parent 393d7b0 commit 4c236b4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/resources/test_card.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,25 @@ def test_import(self):
1414

1515
def test_list(self):
1616
"""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+
1736
cards = Card.list()
1837

1938
self.assertIsInstance(cards, list)

0 commit comments

Comments
 (0)