From 27b24c83eefac1bf0406569e2a0a52257c9bb520 Mon Sep 17 00:00:00 2001 From: Vitalii Martyniak Date: Tue, 14 Apr 2020 12:49:46 +0300 Subject: [PATCH] Update tests for iteraction with contract documents According relsease_2020_04_19 --- .../belowthreshold/tests/contract_blanks.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/openprocurement/tender/belowthreshold/tests/contract_blanks.py b/src/openprocurement/tender/belowthreshold/tests/contract_blanks.py index 4bfdc035c8..28e2e419cc 100644 --- a/src/openprocurement/tender/belowthreshold/tests/contract_blanks.py +++ b/src/openprocurement/tender/belowthreshold/tests/contract_blanks.py @@ -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")], @@ -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), @@ -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 @@ -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( @@ -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