Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

andrii-shchudlo
Copy link

No description provided.

@@ -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')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Цього перевіряти непортібно. Якщо в базі буде присутній рендер, це якось вплине на перевірку довжини періоду в наступному запиті?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Цей тест я не писав. Але якщо його не буде, то цей код буде не покритий тестом.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А хто його писав? ПР від тебе прийшов.

Copy link
Author

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',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Звідки взявся _rev? Що означає це поле і його значення?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Рандомно. rev - MVCC-токен

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Його потрібно передавати в PATCH-i?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Так. По іншому не вийде.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Що буде якщо його не передавати?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не виконається той raise який я покриваю тестом.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тест ламається?

@coveralls
Copy link

coveralls commented Sep 19, 2017

Coverage Status

Coverage increased (+0.04%) to 96.131% when pulling 6794824 on andrii-shchudlo:a429024013052687_Add_test_for_tenderPeriod into de4ca44 on openprocurement:master.

Copy link
Member

@vmaksymiv vmaksymiv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

squash-ни коміти до одного і залиши лише тест.

@andrii-shchudlo andrii-shchudlo force-pushed the a429024013052687_Add_test_for_tenderPeriod branch from 6794824 to 13589c3 Compare September 19, 2017 08:41
@coveralls
Copy link

coveralls commented Sep 19, 2017

Coverage Status

Coverage increased (+0.04%) to 96.131% when pulling 13589c3 on andrii-shchudlo:a429024013052687_Add_test_for_tenderPeriod into de4ca44 on openprocurement:master.

@andrii-shchudlo andrii-shchudlo force-pushed the a429024013052687_Add_test_for_tenderPeriod branch from 13589c3 to 8398abf Compare October 2, 2017 14:07
@coveralls
Copy link

coveralls commented Oct 2, 2017

Coverage Status

Coverage increased (+0.0007%) to 97.136% when pulling 8398abf on andrii-shchudlo:a429024013052687_Add_test_for_tenderPeriod into 080b591 on openprocurement:master.

@coveralls
Copy link

coveralls commented Oct 3, 2017

Coverage Status

Coverage increased (+0.0007%) to 97.136% when pulling 20316ea on andrii-shchudlo:a429024013052687_Add_test_for_tenderPeriod into 080b591 on openprocurement:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants