Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/a200894405797627_validation_for_…
Browse files Browse the repository at this point in the history
…deliveryLocation'
  • Loading branch information
vmaksymiv committed Dec 7, 2016
2 parents cb5ee8c + f86b786 commit b1c6a81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/openprocurement/api/tests/tender.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from datetime import timedelta

from openprocurement.api import ROUTE_PREFIX
from openprocurement.api.models import Tender, get_now, CANT_DELETE_PERIOD_START_DATE_FROM, coordinates_reg_exp
from openprocurement.api.models import Tender, get_now, CANT_DELETE_PERIOD_START_DATE_FROM, ITEMS_LOCATION_VALIDATION_FROM, coordinates_reg_exp
from openprocurement.api.tests.base import test_tender_data, test_organization, BaseWebTest, BaseTenderWebTest
from uuid import uuid4

Expand Down Expand Up @@ -673,6 +673,7 @@ def test_create_tender(self):
self.assertEqual(data['guarantee']['amount'], 100500)
self.assertEqual(data['guarantee']['currency'], "USD")

@unittest.skipIf(get_now() < ITEMS_LOCATION_VALIDATION_FROM, "Can`t validate delivery location before {}".format(ITEMS_LOCATION_VALIDATION_FROM))
def test_tender_item_location_validation(self):
response = self.app.get('/tenders')
self.assertEqual(response.status, '200 OK')
Expand Down

0 comments on commit b1c6a81

Please sign in to comment.