Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Mar 15, 2024
1 parent d1a9f9d commit 967f7f4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/services/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from bs4 import BeautifulSoup
from pas.plugins.oidc.plugins import OIDCPlugin
from plone import api
from plone.app.testing import SITE_OWNER_NAME
from plone.app.testing import SITE_OWNER_PASSWORD
Expand All @@ -7,7 +8,6 @@
from plone.restapi.testing import RelativeSession
from urllib.parse import urlparse
from zope.component.hooks import setSite
from pas.plugins.oidc.plugins import OIDCPlugin

import pytest
import requests
Expand Down Expand Up @@ -110,10 +110,7 @@ def google(restapi):
portal = restapi["portal"]
setSite(portal)
with api.env.adopt_roles(["Manager", "Member"]):
portal.acl_users._setObject(
"google",
OIDCPlugin("google", "Google")
)
portal.acl_users._setObject("google", OIDCPlugin("google", "Google"))

transaction.commit()
yield portal

0 comments on commit 967f7f4

Please sign in to comment.