@@ -77,7 +77,7 @@ def clean(self):
7777 def __copy_test_bank_properties (self ):
7878 if self .bank_properties is not None :
7979 return
80- self .bank_properties = ['alu ' , 'local' , 'testhttp' ,'directhttp' ,
80+ self .bank_properties = ['pdbaa ' , 'local' , 'testhttp' ,'directhttp' ,
8181 'alu_list_error' ]
8282 curdir = os .path .dirname (os .path .realpath (__file__ ))
8383 for b in self .bank_properties :
@@ -146,10 +146,10 @@ def setup_method(self, m):
146146 BiomajConfig .load_config (self .utils .global_properties , allow_user_config = False )
147147
148148 # Delete all banks
149- b = Bank ('alu ' )
149+ b = Bank ('pdbaa ' )
150150 b .banks .remove ({})
151151
152- self .config = BiomajConfig ('alu ' )
152+ self .config = BiomajConfig ('pdbaa ' )
153153 data_dir = self .config .get ('data.dir' )
154154 lock_file = os .path .join (data_dir ,'alu.lock' )
155155 if os .path .exists (lock_file ):
@@ -166,13 +166,13 @@ def test_new_bank(self):
166166 """
167167 Checks bank init
168168 """
169- b = Bank ('alu ' )
169+ b = Bank ('pdbaa ' )
170170
171171 def test_new_session (self ):
172172 """
173173 Checks an empty session is created
174174 """
175- b = Bank ('alu ' )
175+ b = Bank ('pdbaa ' )
176176 b .load_session (UpdateWorkflow .FLOW )
177177 for key in b .session ._session ['status' ].keys ():
178178 assert not (b .session .get_status (key ))
@@ -181,14 +181,14 @@ def test_session_reload_notover(self):
181181 """
182182 Checks a session is used if present
183183 """
184- b = Bank ('alu ' )
184+ b = Bank ('pdbaa ' )
185185 for i in range (1 , 5 ):
186- s = Session ('alu ' , self .config , UpdateWorkflow .FLOW )
186+ s = Session ('pdbaa ' , self .config , UpdateWorkflow .FLOW )
187187 s ._session ['status' ][Workflow .FLOW_INIT ] = True
188188 b .session = s
189189 b .save_session ()
190190
191- b = Bank ('alu ' )
191+ b = Bank ('pdbaa ' )
192192 b .load_session (UpdateWorkflow .FLOW )
193193 assert (b .session .get_status (Workflow .FLOW_INIT ))
194194
@@ -198,7 +198,7 @@ def test_clean_old_sessions(self):
198198 """
199199 b = Bank ('local' )
200200 for i in range (1 ,5 ):
201- s = Session ('alu ' , self .config , UpdateWorkflow .FLOW )
201+ s = Session ('pdbaa ' , self .config , UpdateWorkflow .FLOW )
202202 s ._session ['status' ][Workflow .FLOW_INIT ] = True
203203 b .session = s
204204 b .save_session ()
@@ -211,20 +211,20 @@ def test_session_reload_over(self):
211211 """
212212 Checks a session if is not over
213213 """
214- b = Bank ('alu ' )
214+ b = Bank ('pdbaa ' )
215215 for i in range (1 ,5 ):
216- s = Session ('alu ' , self .config , UpdateWorkflow .FLOW )
216+ s = Session ('pdbaa ' , self .config , UpdateWorkflow .FLOW )
217217 s ._session ['status' ][Workflow .FLOW_INIT ] = True
218218 s ._session ['status' ][Workflow .FLOW_OVER ] = True
219219 b .session = s
220220 b .save_session ()
221221
222- b = Bank ('alu ' )
222+ b = Bank ('pdbaa ' )
223223 b .load_session (UpdateWorkflow .FLOW )
224224 assert not (b .session .get_status (Workflow .FLOW_INIT ))
225225
226226 def test_bank_list (self ):
227- b1 = Bank ('alu ' )
227+ b1 = Bank ('pdbaa ' )
228228 b2 = Bank ('local' )
229229 banks = Bank .list ()
230230 assert (len (banks ) == 2 )
@@ -237,7 +237,7 @@ def test_get_release(self):
237237 """
238238 Get release
239239 """
240- b = Bank ('alu ' )
240+ b = Bank ('pdbaa ' )
241241 b .load_session (UpdateWorkflow .FLOW )
242242 res = b .update ()
243243 assert (b .session .get ('update' ))
@@ -249,9 +249,9 @@ def test_get_release(self):
249249 reason = 'network tests disabled'
250250 )
251251 def test_remove_session (self ):
252- b = Bank ('alu ' )
252+ b = Bank ('pdbaa ' )
253253 for i in range (1 ,5 ):
254- s = Session ('alu ' , self .config , UpdateWorkflow .FLOW )
254+ s = Session ('pdbaa ' , self .config , UpdateWorkflow .FLOW )
255255 s ._session ['status' ][Workflow .FLOW_INIT ] = True
256256 b .session = s
257257 b .save_session ()
0 commit comments