Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
jburel committed Apr 2, 2024
1 parent 4bdeffc commit 8c34558
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,9 @@ def testAuthorCanEdit(self, gatewaywrapper, author_testimg_generated):
ctx = gatewaywrapper.gateway.getAdminService().getEventContext()
uuid = ctx.sessionUuid
gatewaywrapper.loginAsAdmin()
gid = gatewaywrapper.gateway.createGroup("author-can-edit-test-%s" % uuid,
member_Ids=[ctx.userId])
gname = "author-can-edit-test-%s" % uuid
gid = gatewaywrapper.gateway.createGroup(gname,
member_Ids=[ctx.userId])

gatewaywrapper.loginAsUser()
gatewaywrapper.gateway.setGroupForSession(gid)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,11 @@ def testConnectUsingClient(self, gatewaywrapper):
gatewaywrapper.loginAsAdmin()
username = "connect_test_user6"
password = "foobar"
connect_test_user = dbhelpers.UserEntry(
username, password, firstname='User', lastname='ConnectUsingClient')
chmod_test_user.create(gatewaywrapper.gateway, dbhelpers.ROOT.passwd)
last_name = "ConnectUsingClient"
test_user= dbhelpers.UserEntry(username, password,
firstname='User',
lastname=last_name)
test_user.create(gatewaywrapper.gateway, dbhelpers.ROOT.passwd)
gatewaywrapper.doDisconnect()

client = omero.client()
Expand All @@ -241,10 +243,11 @@ def testConnectUsingClientNoSessionWithIdentity(self, gatewaywrapper):
gatewaywrapper.loginAsAdmin()
username = "connect_test_user7"
password = "foobar"
connect_test_user = dbhelpers.UserEntry(
username, password, firstname='User',
lastname='ConnectUsingClientNoSessionWithIdentity')
chmod_test_user.create(gatewaywrapper.gateway, dbhelpers.ROOT.passwd)
last_name = "ConnectUsingClientNoSessionWithIdentity"
test_user = dbhelpers.UserEntry(username, password,
firstname='User',
lastname=last_name)
test_user.create(gatewaywrapper.gateway, dbhelpers.ROOT.passwd)
gatewaywrapper.doDisconnect()

client = omero.client()
Expand All @@ -256,10 +259,11 @@ def testConnectUsingClientSessionWithoutIdentity(self, gatewaywrapper):
gatewaywrapper.loginAsAdmin()
username = "connect_test_user8"
password = "foobar"
connect_test_user = dbhelpers.UserEntry(
username, password, firstname='User',
lastname='ConnectUsingClientNoSessionWithoutIdentity')
chmod_test_user.create(gatewaywrapper.gateway, dbhelpers.ROOT.passwd)
last_name = "ConnectUsingClientSessionWithoutIdentity"
test_user = dbhelpers.UserEntry(username, password,
firstname='User',
lastname=last_name)
test_user.create(gatewaywrapper.gateway, dbhelpers.ROOT.passwd)
gatewaywrapper.doDisconnect()

client = omero.client()
Expand All @@ -270,10 +274,11 @@ def testSessionId(self, gatewaywrapper):
gatewaywrapper.loginAsAdmin()
username = "session_test_user"
password = "foobar"
connect_test_user = dbhelpers.UserEntry(
username, password, firstname='User',
lastname='sessionId')
chmod_test_user.create(gatewaywrapper.gateway, dbhelpers.ROOT.passwd)
last_name = "SessionId"
test_user = dbhelpers.UserEntry(username, password,
firstname='User',
lastname=last_name)
test_user.create(gatewaywrapper.gateway, dbhelpers.ROOT.passwd)
gatewaywrapper.doDisconnect()

client = omero.client()
Expand All @@ -287,10 +292,11 @@ def testConnectWithSessionId(self, gatewaywrapper):
gatewaywrapper.loginAsAdmin()
username = "connect_withsession_test_user"
password = "foobar"
connect_test_user = dbhelpers.UserEntry(
username, password, firstname='User',
lastname='connect_withsession')
chmod_test_user.create(gatewaywrapper.gateway, dbhelpers.ROOT.passwd)
last_name = "connect_withsessionId"
test_user = dbhelpers.UserEntry(username, password,
firstname='User',
lastname=last_name)
test_user.create(gatewaywrapper.gateway, dbhelpers.ROOT.passwd)
gatewaywrapper.doDisconnect()

client = omero.client()
Expand Down

0 comments on commit 8c34558

Please sign in to comment.