Follow isort formatting
issue10928
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
[settings]
|
||||
multi_line_output=4
|
||||
known_first_party=trytond
|
||||
+1
-6
@@ -3,12 +3,7 @@
|
||||
|
||||
from trytond.pool import Pool
|
||||
|
||||
from . import ir
|
||||
from . import marketing_automation
|
||||
from . import web
|
||||
from . import party
|
||||
from . import sale
|
||||
from . import routes
|
||||
from . import ir, marketing_automation, party, routes, sale, web
|
||||
|
||||
__all__ = ['register', 'routes']
|
||||
|
||||
|
||||
@@ -9,34 +9,34 @@ from email.mime.multipart import MIMEMultipart
|
||||
from email.mime.text import MIMEText
|
||||
from email.utils import formataddr, getaddresses
|
||||
from urllib.parse import (
|
||||
urlsplit, parse_qsl, urlencode, urlunsplit, quote, urljoin)
|
||||
parse_qsl, quote, urlencode, urljoin, urlsplit, urlunsplit)
|
||||
|
||||
try:
|
||||
import html2text
|
||||
except ImportError:
|
||||
html2text = None
|
||||
|
||||
from genshi.core import END, START, Attrs, QName
|
||||
from genshi.template import MarkupTemplate, TextTemplate
|
||||
from sql import Literal
|
||||
from sql.aggregate import Count
|
||||
from sql.functions import Substring, Position
|
||||
from genshi.template import MarkupTemplate, TextTemplate
|
||||
from genshi.core import START, END, QName, Attrs
|
||||
from sql.functions import Position, Substring
|
||||
|
||||
from trytond.config import config
|
||||
from trytond.i18n import gettext
|
||||
from trytond.model import (fields, ModelSQL, ModelView, Workflow, Unique,
|
||||
EvalEnvironment, dualmethod)
|
||||
from trytond.model import (
|
||||
EvalEnvironment, ModelSQL, ModelView, Unique, Workflow, dualmethod, fields)
|
||||
from trytond.pool import Pool
|
||||
from trytond.pyson import PYSONDecoder, Eval, If
|
||||
from trytond.pyson import Eval, If, PYSONDecoder
|
||||
from trytond.report import Report
|
||||
from trytond.sendmail import sendmail_transactional, SMTPDataManager
|
||||
from trytond.sendmail import SMTPDataManager, sendmail_transactional
|
||||
from trytond.tools import grouped_slice, reduce_ids
|
||||
from trytond.tools.email_ import set_from_header
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.url import http_host
|
||||
from trytond.wsgi import Base64Converter
|
||||
|
||||
from .exceptions import DomainError, ConditionError, TemplateError
|
||||
from .exceptions import ConditionError, DomainError, TemplateError
|
||||
from .mixin import MarketingAutomationMixin
|
||||
|
||||
if not config.get(
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
from trytond.pool import PoolMeta
|
||||
|
||||
from .mixin import MarketingAutomationMixin
|
||||
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
from werkzeug.wrappers import Response
|
||||
from werkzeug.utils import redirect
|
||||
from werkzeug.wrappers import Response
|
||||
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.tools import file_open
|
||||
from trytond.protocols.wrappers import with_pool, with_transaction
|
||||
from trytond.tools import file_open
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.wsgi import app
|
||||
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
from trytond.pool import PoolMeta
|
||||
|
||||
from .mixin import MarketingAutomationMixin
|
||||
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ import io
|
||||
import os
|
||||
import re
|
||||
from configparser import ConfigParser
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
|
||||
def read(fname):
|
||||
|
||||
+2
-1
@@ -2,7 +2,8 @@
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
try:
|
||||
from trytond.modules.marketing_automation.tests.test_marketing_automation import suite # noqa: E501
|
||||
from trytond.modules.marketing_automation.tests.test_marketing_automation import \
|
||||
suite # noqa: E501
|
||||
except ImportError:
|
||||
from .test_marketing_automation import suite
|
||||
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
import unittest
|
||||
import doctest
|
||||
import unittest
|
||||
|
||||
from trytond.tests.test_tryton import ModuleTestCase
|
||||
from trytond.tests.test_tryton import (
|
||||
ModuleTestCase, doctest_checker, doctest_teardown)
|
||||
from trytond.tests.test_tryton import suite as test_suite
|
||||
from trytond.tests.test_tryton import doctest_teardown
|
||||
from trytond.tests.test_tryton import doctest_checker
|
||||
|
||||
|
||||
class MarketingAutomationTestCase(ModuleTestCase):
|
||||
|
||||
Reference in New Issue
Block a user