Skip to content

Commit

Permalink
feat(project): u#2860 t#4048 add id workflow to get_projet
Browse files Browse the repository at this point in the history
  • Loading branch information
tdelatorre committed Sep 28, 2023
1 parent e2267c6 commit 64ef0e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@


class WorkflowNestedSerializer(BaseModel):
id: UUIDB64
name: str
slug: str

Expand Down
12 changes: 8 additions & 4 deletions python/docs/postman/taiga.postman_collection_e2e.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info": {
"_postman_id": "5511fda1-e0cf-4e71-9c44-ae40b83d9fa7",
"_postman_id": "cf393355-0c41-4532-8f51-592b8ef092ab",
"name": "taiga-next e2e",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "9835734"
Expand Down Expand Up @@ -2517,6 +2517,7 @@
" pm.expect(workspace).to.have.property(\"userRole\");",
"",
" var workflows = jsonRes.workflows;",
" pm.expect(workflows[0]).to.have.property(\"id\");",
" pm.expect(workflows[0]).to.have.property(\"name\");",
" pm.expect(workflows[0]).to.have.property(\"slug\");",
"",
Expand Down Expand Up @@ -4035,7 +4036,8 @@
" pm.expect(jsonRes).to.have.property(\"order\");",
" pm.expect(jsonRes).to.have.property(\"workflow\");",
" ",
" pm.expect(Object.keys(jsonRes.workflow).length).to.equal(2); ",
" pm.expect(Object.keys(jsonRes.workflow).length).to.equal(3);",
" pm.expect(jsonRes.workflow).to.have.property(\"id\"); ",
" pm.expect(jsonRes.workflow).to.have.property(\"name\");",
" pm.expect(jsonRes.workflow).to.have.property(\"slug\");",
"});"
Expand Down Expand Up @@ -5019,10 +5021,11 @@
" var numOfReturnedFields = Object.keys(jsonRes.status).length;",
" pm.expect(numOfReturnedFields).to.equal(4);",
"",
" pm.expect(jsonRes.workflow).to.have.property(\"id\");",
" pm.expect(jsonRes.workflow).to.have.property(\"name\");",
" pm.expect(jsonRes.workflow).to.have.property(\"slug\");",
" numOfReturnedFields = Object.keys(jsonRes.workflow).length;",
" pm.expect(numOfReturnedFields).to.equal(2);",
" pm.expect(numOfReturnedFields).to.equal(3);",
"});",
"",
"pm.test(\"Environment variable settings\", function () {",
Expand Down Expand Up @@ -5107,10 +5110,11 @@
" var numOfReturnedFields = Object.keys(jsonRes.status).length;",
" pm.expect(numOfReturnedFields).to.equal(4);",
"",
" pm.expect(jsonRes.workflow).to.have.property(\"id\");",
" pm.expect(jsonRes.workflow).to.have.property(\"name\");",
" pm.expect(jsonRes.workflow).to.have.property(\"slug\");",
" numOfReturnedFields = Object.keys(jsonRes.workflow).length;",
" pm.expect(numOfReturnedFields).to.equal(2);",
" pm.expect(numOfReturnedFields).to.equal(3);",
"",
" // Validate updates",
" pm.expect(jsonRes.title).to.contain(\"New title\");",
Expand Down

0 comments on commit 64ef0e8

Please sign in to comment.