File tree 2 files changed +17
-2
lines changed
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 20
20
omero export --file new.ome.xml --type XML Image:1
21
21
omero export --file output-dir --iterate Dataset:2
22
22
23
- If --iterate is used used , the only supported obj is Dataset:<id>
23
+ If --iterate is used, the only supported obj is Dataset:<id>
24
24
"""
25
25
26
26
Original file line number Diff line number Diff line change @@ -53,8 +53,9 @@ def testHostConstructor(self):
53
53
except :
54
54
c .__del__ ()
55
55
56
- def testInitializationDataConstructor (self ):
56
+ def testEmptyInitializationDataConstructor (self ):
57
57
id = Ice .InitializationData ()
58
+ # With no argument id.properties is empty
58
59
id .properties = Ice .createProperties ()
59
60
id .properties .setProperty ("omero.host" , self .host )
60
61
id .properties .setProperty ("omero.port" , str (self .port ))
@@ -69,6 +70,20 @@ def testInitializationDataConstructor(self):
69
70
finally :
70
71
c .__del__ ()
71
72
73
+ def testInitializationDataConstructor (self ):
74
+ id = Ice .InitializationData ()
75
+ id .properties = Ice .createProperties ([])
76
+ id .properties .setProperty ("omero.user" , "root" )
77
+ id .properties .setProperty ("omero.pass" , self .rootpasswd )
78
+ c = omero .client (id = id )
79
+ try :
80
+ c .createSession ()
81
+ c .closeSession ()
82
+ c .createSession ()
83
+ c .closeSession ()
84
+ finally :
85
+ c .__del__ ()
86
+
72
87
def testMainArgsConstructor (self ):
73
88
args = ["--omero.host=" + self .host ,
74
89
"--omero.user=root" , "--omero.pass=" + self .rootpasswd ]
You can’t perform that action at this time.
0 commit comments