From fdbace53069479d72ca82877cdb3bc8327e75a59 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Tue, 18 Jun 2024 17:50:00 +0200 Subject: [PATCH] [EDF30157] Port testProxy --- src/Container/Test/testProxy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.2