File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -929,6 +929,7 @@ def load_step_options(self):
929
929
930
930
def _get_between (self , init_string , end_string = None , string = None ):
931
931
if not string :
932
+ self ._update ()
932
933
string = self ._stats
933
934
934
935
st = string .find (init_string ) + len (init_string )
@@ -959,8 +960,9 @@ def _get_title(self):
959
960
def _get_stitles (self ):
960
961
return [
961
962
re .search (f"SUBTITLE { i } =(.*)" , self ._get_titles ()).groups (1 )[0 ].strip ()
962
- for i in range (1 , 5 )
963
963
if re .search (f"SUBTITLE { i } =(.*)" , self ._get_titles ())
964
+ else ""
965
+ for i in range (1 , 5 )
964
966
]
965
967
966
968
def _get_products (self ):
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ def test_info_title(mapdl):
150
150
def test_info_stitle (mapdl ):
151
151
info = mapdl .info
152
152
153
- assert not info .stitles
153
+ assert all ([ not each for each in info .stitles ])
154
154
stitles = ["asfd" , "qwer" , "zxcv" , "jkl" ]
155
155
info .stitles = "\n " .join (stitles )
156
156
@@ -162,7 +162,7 @@ def test_info_stitle(mapdl):
162
162
assert stitles == info .stitles
163
163
164
164
info .stitles = None
165
- assert not info .stitles
165
+ assert all ([ not each for each in info .stitles ])
166
166
167
167
168
168
@pytest .mark .parametrize ("file_" , ["dummy.dumdum" , "dumdum.dummy" ])
You can’t perform that action at this time.
0 commit comments