Skip to content

Commit 40267f8

Browse files
committed
Fix tests
1 parent 1723baa commit 40267f8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

democrasite/webiscite/managers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ def create_from_github(
137137
diff_text = requests.get(pull_request.diff_url, timeout=10).text
138138
constitutional = bool(is_constitutional(diff_text))
139139

140-
status = Bill.Status.DRAFT if pull_request.draft else Bill.Status.OPEN
140+
status = (
141+
self.model.Status.DRAFT if pull_request.draft else self.model.Status.OPEN
142+
)
141143

142144
bill = self.model(
143145
name=pull_request.title,

0 commit comments

Comments
 (0)