Skip to content

Commit

Permalink
Update tests for iteraction with contract documents
Browse files Browse the repository at this point in the history
According relsease_2020_04_19
  • Loading branch information
VDigitall committed Apr 17, 2020
1 parent 4d0e9f6 commit 27b24c8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/openprocurement/tender/belowthreshold/tests/contract_blanks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1765,6 +1765,9 @@ def lot2_create_tender_contract_document(self):
"/tenders/{}/cancellations?acc_token={}".format(self.tender_id, self.tender_token), {"data": cancellation},
)

if RELEASE_2020_04_19 < get_now():
activate_cancellation_after_2020_04_19(self, response.json['data']['id'])

response = self.app.post(
"/tenders/{}/contracts/{}/documents?acc_token={}".format(self.tender_id, self.contract_id, self.tender_token),
upload_files=[("file", "name.doc", "content")],
Expand Down Expand Up @@ -1824,6 +1827,9 @@ def lot2_create_tender_contract_document_by_supplier(self):
{"data": cancellation},
)

if RELEASE_2020_04_19 < get_now():
activate_cancellation_after_2020_04_19(self, response.json['data']['id'])

# Supplier
response = self.app.post(
"/tenders/{}/contracts/{}/documents?acc_token={}".format(self.tender_id, self.contract_id, bid_token),
Expand Down Expand Up @@ -1941,6 +1947,9 @@ def lot2_put_tender_contract_document(self):
{"data": cancellation},
)

if RELEASE_2020_04_19 < get_now():
activate_cancellation_after_2020_04_19(self, response.json['data']['id'])

response = self.app.put(
"/tenders/{}/contracts/{}/documents/{}?acc_token={}".format(
self.tender_id, self.contract_id, doc_id, self.tender_token
Expand Down Expand Up @@ -2024,6 +2033,9 @@ def lot2_put_tender_contract_document_by_supplier(self):
{"data": cancellation},
)

if RELEASE_2020_04_19 < get_now():
activate_cancellation_after_2020_04_19(self, response.json['data']['id'])

# Supplier
response = self.app.put(
"/tenders/{}/contracts/{}/documents/{}?acc_token={}".format(
Expand Down Expand Up @@ -2094,6 +2106,9 @@ def lot2_patch_tender_contract_document(self):
{"data": cancellation},
)

if RELEASE_2020_04_19 < get_now():
activate_cancellation_after_2020_04_19(self, response.json['data']['id'])

response = self.app.patch_json(
"/tenders/{}/contracts/{}/documents/{}?acc_token={}".format(
self.tender_id, self.contract_id, doc_id, self.tender_token
Expand Down

0 comments on commit 27b24c8

Please sign in to comment.