Skip to content

Commit

Permalink
add tests awarding with features
Browse files Browse the repository at this point in the history
  • Loading branch information
dimon.obert committed Nov 6, 2017
1 parent a43f6f0 commit d440c9a
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion openprocurement/tender/openuadefense/tests/auction.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
patch_tender_lots_auction,
# TenderFeaturesAuctionResourceTest
get_tender_auction_feature,
post_tender_auction_feature,
# TenderFeaturesLotAuctionResourceTest
get_tender_lot_auction_features,
post_tender_lot_auction_features,
# TenderFeaturesMultilotAuctionResourceTest
get_tender_lots_auction_features,
post_tender_lots_auction_features
)

from openprocurement.tender.openua.tests.base import test_bids
Expand Down Expand Up @@ -76,7 +83,7 @@ class TenderMultipleLotAuctionResourceTest(TenderMultipleLotAuctionResourceTestM

class TenderFeaturesAuctionResourceTest(BaseTenderUAContentWebTest):
initial_data = test_features_tender_ua_data
initial_status = 'active.auction'
initial_status = 'active.tendering'
initial_bids = [
{
"parameters": [
Expand Down Expand Up @@ -119,13 +126,30 @@ class TenderFeaturesAuctionResourceTest(BaseTenderUAContentWebTest):
]

test_get_tender_auction = snitch(get_tender_auction_feature)
test_post_tender_auction = snitch(post_tender_auction_feature)


class TenderFeaturesLotAuctionResourceTest(TenderLotAuctionResourceTestMixin,
TenderFeaturesAuctionResourceTest):
initial_lots = test_lots
test_get_tender_auction = snitch(get_tender_lot_auction_features)
test_post_tender_auction = snitch(post_tender_lot_auction_features)


class TenderFeaturesMultilotAuctionResourceTest(TenderMultipleLotAuctionResourceTestMixin,
TenderFeaturesAuctionResourceTest):
initial_lots = test_lots * 2
test_get_tender_auction = snitch(get_tender_lots_auction_features)
test_post_tender_auction = snitch(post_tender_lots_auction_features)


def suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TenderAuctionResourceTest))
suite.addTest(unittest.makeSuite(TenderSameValueAuctionResourceTest))
suite.addTest(unittest.makeSuite(TenderFeaturesAuctionResourceTest))
suite.addTest(unittest.makeSuite(TenderFeaturesLotAuctionResourceTest))
suite.addTest(unittest.makeSuite(TenderFeaturesMultilotAuctionResourceTest))
return suite


Expand Down

0 comments on commit d440c9a

Please sign in to comment.