Skip to content

Commit

Permalink
chore: isort
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Apr 8, 2023
1 parent a13cfc1 commit 52f95b6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys, os
import os
import sys


# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down
4 changes: 3 additions & 1 deletion src/plone/app/testing/cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@

def cleanUpMultiPlugins():
try:
from Products.PluggableAuthService.PluggableAuthService import MultiPlugins # NOQA: E501
from Products.PluggableAuthService.PluggableAuthService import (
MultiPlugins, # NOQA: E501
)
except ImportError:
pass
else:
Expand Down
12 changes: 6 additions & 6 deletions src/plone/app/testing/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def quickInstallProduct(portal, productName, reinstall=False):
is installed already.
"""

from Acquisition import aq_parent
from AccessControl import getSecurityManager
from AccessControl.SecurityManagement import setSecurityManager
from Acquisition import aq_parent

sm = getSecurityManager()
app = aq_parent(portal)
Expand Down Expand Up @@ -108,9 +108,9 @@ def applyProfile(portal, profileName, purge_old=None,
should be a package name and a profile name, e.g. 'my.product:default'.
"""

from Acquisition import aq_parent
from AccessControl import getSecurityManager
from AccessControl.SecurityManagement import setSecurityManager
from Acquisition import aq_parent

sm = getSecurityManager()
app = aq_parent(portal)
Expand Down Expand Up @@ -354,7 +354,9 @@ def setUp(self):

security.pushCheckers()

from Products.PluggableAuthService.PluggableAuthService import MultiPlugins # noqa
from Products.PluggableAuthService.PluggableAuthService import ( # noqa
MultiPlugins,
)

preSetupMultiPlugins = MultiPlugins[:]

Expand Down Expand Up @@ -435,9 +437,7 @@ def snapshotMultiPlugins(self, preSetupMultiPlugins):

self._addedMultiPlugins = set()

from Products.PluggableAuthService.PluggableAuthService import (
MultiPlugins
)
from Products.PluggableAuthService.PluggableAuthService import MultiPlugins

for plugin in MultiPlugins:
if plugin not in preSetupMultiPlugins:
Expand Down
3 changes: 2 additions & 1 deletion src/plone/app/testing/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class PloneFixture(Layer):
try:
# Since gopipindex moved to plone.folder only with Archetypes
import plone.app.folder

# Prevent trying to load plone.app.folder if it is a module alias
if hasattr(plone.app.folder, "__file__"):
products += (
Expand Down Expand Up @@ -359,8 +360,8 @@ def tearDownEnvironment(self, portal):
from plone.memoize.ram import global_cache
global_cache.invalidateAll()

from zope.component import queryUtility
from plone.memoize.ram import IRAMCache
from zope.component import queryUtility
cache = queryUtility(IRAMCache)
if cache and getattr(cache, '_cacheId', None):
cache.invalidateAll()
Expand Down

0 comments on commit 52f95b6

Please sign in to comment.