From: Anthony Geay Date: Tue, 18 Jun 2024 15:50:00 +0000 (+0200) Subject: [EDF30157] Port testProxy X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fagy%2F30157_2;p=modules%2Fkernel.git [EDF30157] Port testProxy --- diff --git a/src/Container/Test/testProxy.py b/src/Container/Test/testProxy.py index 07ff9b6de..962e2ab07 100644 --- a/src/Container/Test/testProxy.py +++ b/src/Container/Test/testProxy.py @@ -48,7 +48,7 @@ class TestProxy(unittest.TestCase): ## Time to test it script_st = """import os import KernelBasis -a = KernelBasis.GetBigObjOnDiskDirectory() +_,a = KernelBasis.GetBigObjOnDiskProtocolAndDirectory() b = os.environ["jj"] c = KernelBasis.GetBigObjOnDiskThreshold() j = a,b,c""" @@ -74,9 +74,9 @@ j = a,b,c""" ret2 = ret2[0] ret3 = pickle.loads( SALOME_PyNode.SeqByteReceiver(ret2).data() ) self.assertTrue( isinstance( ret3, SALOME_PyNode.BigObjectOnDiskList ) ) - self.assertTrue( val_for_big_obj == os.path.dirname( ret3.getFileName() ) )# very important part of test + self.assertTrue( val_for_big_obj == os.path.dirname( ret3.getFileName().getFileName() ) )# very important part of test self.assertTrue( ret3.get() == list(range(100)) ) - fn = ret3.getFileName() + fn = ret3.getFileName().getFileName() self.assertTrue( os.path.exists( fn ) ) ret3.unlinkOnDestructor() del ret3