diff --git a/speid/tasks/orders.py b/speid/tasks/orders.py index 90ba45a..b5ec822 100644 --- a/speid/tasks/orders.py +++ b/speid/tasks/orders.py @@ -28,7 +28,6 @@ from speid.types import Estado, EventType from speid.validations import factory -MAX_AMOUNT = int(os.getenv('MAX_AMOUNT', '9999999999999999')) IGNORED_EXCEPTIONS = os.getenv('IGNORED_EXCEPTIONS', '').split(',') START_DOWNTIME = datetime.strptime( os.getenv('START_DOWNTIME', '11:55PM'), "%I:%M%p" @@ -118,12 +117,6 @@ def execute(order_val: dict): transaction.update_stp_status() return - # A partir de aquĆ­ son validaciones para transferencias nuevas - if transaction.monto > MAX_AMOUNT: - transaction.events.append(Event(type=EventType.error)) - transaction.save() - raise MalformedOrderException() - try: transaction.create_order() except ( diff --git a/tests/tasks/test_orders.py b/tests/tasks/test_orders.py index d231a76..b252947 100644 --- a/tests/tasks/test_orders.py +++ b/tests/tasks/test_orders.py @@ -168,12 +168,6 @@ def test_doesnt_retry_on_manual_review_exception( mock_capture_exception.assert_called_once() -def test_hold_max_amount(order): - order['monto'] = 102000000 - with pytest.raises(MalformedOrderException): - execute(order) - - @patch('speid.tasks.orders.capture_exception') @patch('speid.tasks.orders.send_order.retry') def test_stp_schedule_limit(