-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a429024013052687 Add test for tenderPeriod #68
base: master
Are you sure you want to change the base?
a429024013052687 Add test for tenderPeriod #68
Conversation
@@ -224,6 +224,27 @@ def create_tender_invalid(self): | |||
{u'description': [u'tenderPeriod.startDate should be in greater than current date'], u'location': u'body', u'name': u'tenderPeriod'} | |||
]) | |||
|
|||
response = self.app.get('/tenders') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Цього перевіряти непортібно. Якщо в базі буде присутній рендер, це якось вплине на перевірку довжини періоду в наступному запиті?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Цей тест я не писав. Але якщо його не буде, то цей код буде не покритий тестом.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А хто його писав? ПР від тебе прийшов.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я не на той код подивився. Зараз виправлю
owner_token = response.json['access']['token'] | ||
now = get_now() | ||
response = self.app.patch_json('/tenders/{}?acc_token={}'.format( | ||
tender['id'], owner_token), {'data': {'_rev': '1-29ce9443d256c3e145f4212a31806937', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Звідки взявся _rev? Що означає це поле і його значення?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Рандомно. rev - MVCC-токен
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Його потрібно передавати в PATCH-i?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Так. По іншому не вийде.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Що буде якщо його не передавати?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не виконається той raise який я покриваю тестом.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тест ламається?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
squash-ни коміти до одного і залиши лише тест.
6794824
to
13589c3
Compare
13589c3
to
8398abf
Compare
No description provided.