Skip to content

Conversation

@karmagood
Copy link
Contributor

@karmagood karmagood commented Mar 7, 2017

This change is Reviewable

@coveralls
Copy link

coveralls commented Mar 7, 2017

Coverage Status

Coverage decreased (-0.06%) to 97.801% when pulling c735fdd on karmagood:a172713223911293_add_default_enquiryPeriod.startDate into 67df2c1 on openprocurement:a172713223911293_add_default_enquiryPeriod.startDate.

Lot, schematics_embedded_role, schematics_default_role, ORA_CODES, WORKING_DAYS,
validate_features_uniq, validate_items_uniq, validate_lots_uniq, Period,
Complaint as BaseComplaint, TZ, get_now, set_parent, ComplaintModelType,
Complaint as BaseComplaint, TZ, get_now, set_parent, ComplaintModelType, CANT_DELETE_PERIOD_START_DATE_FROM,
Copy link
Contributor

Choose a reason for hiding this comment

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

тут має бути свій CANT_DELETE_PERIOD_START_DATE_FROM, оскільки ми не знаємо термів введення цієї зміни

@leits leits self-requested a review March 7, 2017 14:57
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.json['data']["status"], "active.tendering")

def test_switch_to_tendering_auctionPeriod(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Тести мають бути часозалежні

Copy link
Contributor

Choose a reason for hiding this comment

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

ping


class AuctionSwitchtenderingResourceTest(BaseAuctionWebTest):

def test_switch_to_tendering_by_enquiryPeriod_endDate(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Тести мають бути часозалежні

self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't update auction in current (complete) status")

@unittest.skipIf(get_now() < CANT_DELETE_PERIOD_START_DATE_FROM,
Copy link
Contributor

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 Mar 18, 2017

Coverage Status

Coverage decreased (-0.06%) to 97.802% when pulling 661422a on karmagood:a172713223911293_add_default_enquiryPeriod.startDate into 67df2c1 on openprocurement:a172713223911293_add_default_enquiryPeriod.startDate.

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