Commit b2eb8d1
committed
fix(workflow): set entry to workflow stage before publish_request_approval
publish_request_approval calls GET /workflow which returns 401 when the
entry has no active workflow state. wf_entry is class-scoped so
TestWorkflowPublishRules gets a fresh entry that was never assigned to
a stage (TestWorkflowStagesAndTasks sets a different instance). Fix:
call set_workflow_stage inside the test to activate the entry's workflow
state before querying. Removes the xfail marker.1 parent c0ca20c commit b2eb8d1
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
190 | | - | |
| 188 | + | |
191 | 189 | | |
192 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
193 | 198 | | |
194 | 199 | | |
195 | 200 | | |
| |||
0 commit comments