def delete_transaction_type_v1(txn_type: str, **kwargs) -> Tuple[str, int, Dict[str, str]]: if not txn_type: raise exceptions.ValidationException("Invalid parameter: txn_type") transaction_types.delete_transaction_type_v1(txn_type) return helpers.flask_http_response(200, helpers.format_success(True))
def test_delete_txn_type_succeeds(self, mock_get_registered_type, dao_remove_txn_type_mock): transaction_types.delete_transaction_type_v1("random") mock_get_registered_type.assert_called_once_with("random")