コード例 #1
0
 def setUp(self):
     super(AuctionContractDocumentResourceTest, self).setUp()
     # Create award
     fixtures.create_award(self)
     # Create contract for award
     self.app.patch_json(
         '/auctions/{}/awards/{}?acc_token={}'.format(
             self.auction_id, self.award_id, self.auction_token),
         {"data": {
             "status": "active"
         }})
     response = self.app.get('/auctions/{}/contracts'.format(
         self.auction_id))
     self.contract = response.json['data'][0]
     self.contract_id = self.contract['id']
コード例 #2
0
    def setUp(self):
        super(Auction2LotAwardComplaintDocumentResourceTest, self).setUp()
        # Create award
        fixtures.create_award(self)

        # Create complaint for award
        response = self.app.post_json(
            '/auctions/{}/awards/{}/complaints?acc_token={}'.format(
                self.auction_id, self.first_award_id, self.first_bid_token), {
                    'data': {
                        'title': 'complaint title',
                        'description': 'complaint description',
                        'author': test_organization
                    }
                })
        complaint = response.json['data']
        self.complaint_id = complaint['id']
        self.complaint_owner_token = response.json['access']['token']
コード例 #3
0
 def setUp(self):
     super(AuctionAwardComplaintSwitchResourceTest, self).setUp()
     # Create award
     fixtures.create_award(self)
コード例 #4
0
 def setUp(self):
     super(AuctionLotAwardResourceTest, self).setUp()
     fixtures.create_award(self)
コード例 #5
0
 def setUp(self):
     super(Auction2LotAwardDocumentResourceTest, self).setUp()
     # Create award
     fixtures.create_award(self)