Skip to content

Commit

Permalink
chore: isort
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Apr 24, 2023
1 parent f3fd509 commit 4169241
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
4 changes: 3 additions & 1 deletion plone/theme/layer.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
from plone.theme.interfaces import IDefaultPloneLayer
from Products.CMFCore.utils import getToolByName
from zope.component import queryUtility
from zope.interface import directlyProvides, directlyProvidedBy
from zope.interface import directlyProvidedBy
from zope.interface import directlyProvides
from zope.publisher.interfaces.browser import IBrowserSkinType
from zope.publisher.interfaces.browser import IDefaultBrowserLayer


default_layers = [
IDefaultPloneLayer,
IDefaultBrowserLayer,
Expand Down
12 changes: 7 additions & 5 deletions plone/theme/tests/testBrowserLayerPrecedence.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@

from plone.theme.interfaces import IDefaultPloneLayer
from plone.theme.testing import PLONETHEME_INTEGRATION_TESTING

from zope.event import notify
from zope.interface import Interface, directlyProvides, directlyProvidedBy
from zope.component import getGlobalSiteManager
from zope.event import notify
from zope.interface import directlyProvidedBy
from zope.interface import directlyProvides
from zope.interface import Interface
from zope.publisher.browser import setDefaultSkin
from zope.publisher.interfaces.browser import IBrowserSkinType
from zope.publisher.interfaces.browser import IDefaultBrowserLayer
from zope.publisher.browser import setDefaultSkin
from zope.traversing.interfaces import BeforeTraverseEvent

import unittest
Expand Down Expand Up @@ -103,7 +104,8 @@ class TestPrecedenceWithNoThemeLayer(LayerPrecedenceTestCase):


def test_suite():
from unittest import TestSuite, makeSuite
from unittest import makeSuite
from unittest import TestSuite
suite = TestSuite()
suite.addTest(makeSuite(TestPrecedenceWithAdditiveLayerExtendingInterface))
suite.addTest(makeSuite(TestPrecedenceWithAdditiveLayerExtendingDefault))
Expand Down
7 changes: 3 additions & 4 deletions plone/theme/tests/test_doctest.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import unittest
import doctest

from plone.testing import layered
from plone.theme.testing import PLONETHEME_FUNCTIONAL_TESTING

from plone.testing import layered
import doctest
import unittest


def test_suite():
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from setuptools import find_packages
from setuptools import setup

import os
from setuptools import setup, find_packages


def read(*rnames):
Expand Down

0 comments on commit 4169241

Please sign in to comment.