Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #14 from AusDTO/feature/validate-selected-opportun…
Browse files Browse the repository at this point in the history
…ities

Add stub data to enable selected opportunities testing
  • Loading branch information
maxious committed Oct 4, 2016
2 parents 936a14e + 5232b61 commit 2b6eef9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions dmapiclient/api_stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def brief(status="draft",
"createdAt": "2016-03-29T10:11:12.000000Z",
"updatedAt": "2016-03-29T10:11:13.000000Z",
"clarificationQuestions": clarification_questions or [],
"sellerSelector": 'allSellers'
}
}
if status == "live":
Expand Down
4 changes: 4 additions & 0 deletions tests/test_api_stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def test_brief():
"createdAt": "2016-03-29T10:11:12.000000Z",
"updatedAt": "2016-03-29T10:11:13.000000Z",
"clarificationQuestions": [],
"sellerSelector": 'allSellers'
}
}

Expand Down Expand Up @@ -80,6 +81,7 @@ def test_brief():
"clarificationQuestionsPublishedBy": "2016-04-06T00:00:00.000000Z",
"clarificationQuestionsAreClosed": False,
"clarificationQuestions": [],
"sellerSelector": 'allSellers'
}
}

Expand All @@ -103,6 +105,7 @@ def test_brief():
"question": "Why?",
"answer": "Because"
}],
"sellerSelector": 'allSellers'
}
}

Expand All @@ -128,5 +131,6 @@ def test_brief():
"clarificationQuestionsPublishedBy": "2016-04-06T00:00:00.000000Z",
"clarificationQuestionsAreClosed": True,
"clarificationQuestions": [],
"sellerSelector": 'allSellers'
}
}

0 comments on commit 2b6eef9

Please sign in to comment.