Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/a158972595146231_parallel_testing'
Browse files Browse the repository at this point in the history
  • Loading branch information
kroman0 committed Aug 16, 2016
2 parents 8c630e5 + a62cd67 commit 9d5cbcf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
14 changes: 4 additions & 10 deletions openprocurement/tender/limited/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from openprocurement.api.models import SANDBOX_MODE
from openprocurement.api.utils import apply_data_patch
from openprocurement.api.tests.base import test_tender_data as base_data
from openprocurement.api.tests.base import BaseTenderWebTest, PrefixedRequestClass
from openprocurement.api.tests.base import BaseTenderWebTest as BaseBaseTenderWebTest
from openprocurement.api.tests.base import test_organization

now = datetime.now()
Expand Down Expand Up @@ -34,22 +34,16 @@
test_tender_negotiation_quick_data['procurementMethodDetails'] = 'quick, accelerator=1440'


class BaseTenderWebTest(BaseTenderWebTest):
class BaseTenderWebTest(BaseBaseTenderWebTest):
initial_data = test_tender_data
initial_status = None
initial_bids = None
initial_lots = None
relative_to = os.path.dirname(__file__)

def setUp(self):
self.app = webtest.TestApp(
"config:tests.ini", relative_to=os.path.dirname(__file__))
self.app.RequestClass = PrefixedRequestClass
super(BaseBaseTenderWebTest, self).setUp()
self.app.authorization = ('Basic', ('broker', ''))
self.couchdb_server = self.app.app.registry.couchdb_server
self.db = self.app.app.registry.db

def tearDown(self):
del self.couchdb_server[self.db.name]

def set_status(self, status, extra=None):
data = {'status': status}
Expand Down
2 changes: 1 addition & 1 deletion versions.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WebOb = 1.4.1
WebTest = 2.0.18
docutils = 0.12
jsonpointer = 1.9
nose = 1.3.4
nose = 1.3.7
py = 1.4.26
pyramid = 1.5.7
python-coveralls = 2.5.0
Expand Down

0 comments on commit 9d5cbcf

Please sign in to comment.