-
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
A429024013052686 add tender tests #67
base: master
Are you sure you want to change the base?
A429024013052686 add tender tests #67
Conversation
@@ -704,3 +704,27 @@ def tender_submission_method_details_no_auction_only(self): | |||
self.assertEqual(response.status, '200 OK') | |||
self.assertEqual(response.content_type, 'application/json') | |||
self.assertEqual(response.json['data']['submissionMethodDetails'], "quick(mode:no-auction)") | |||
|
|||
def validate_items(self): | |||
my_data = deepcopy(self.initial_data) |
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.
my_
? нащо?
|
||
self.assertEqual(response.status, '201 Created') | ||
self.assertEqual(response.content_type, 'application/json') | ||
self.assertEqual(response.json['data']['submissionMethodDetails'], "quick(mode:no-auction)") |
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.
"quick(mode:no-auction)"
це обов'язково мати для тестування items?
|
||
def validate_items(self): | ||
my_data = deepcopy(self.initial_data) | ||
my_data["items"][0]["classification"]["id"] = u"33693100-5" |
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.
Для чого змінювати значення?
my_data["items"][0]["classification"]["id"] = u"92332000-7" | ||
my_data["items"].append(deepcopy(my_data["items"][0])) | ||
my_data["items"][1]["classification"]["id"] = u"92340000-6" | ||
my_data["revisions"] = [] |
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.
revisions
? для чого його встановлювати?
519a267
to
c1f8ad7
Compare
@@ -732,3 +732,24 @@ def tender_submission_method_details_no_auction_only(self): | |||
self.assertEqual(response.status, '200 OK') | |||
self.assertEqual(response.content_type, 'application/json') | |||
self.assertEqual(response.json['data']['submissionMethodDetails'], "quick(mode:no-auction)") | |||
|
|||
def validate_items(self): |
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.
Аналогічних перевірок в інших процедурах нема? Якщо немає, то є смисл перенести цей тест в базовий пакет і включити його у всіх процедурах.
c1f8ad7
to
d211944
Compare
d211944
to
c9e6fc4
Compare
c9e6fc4
to
b9fa4f0
Compare
No description provided.