File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1960,18 +1960,20 @@ def test_export_page_unavailable(self):
19601960 return
19611961
19621962 page_entity = self .sg .create ("Page" , {"entity_type" : "Shot" })
1963+ error_messages = [
1964+ "This functionality is currently not available" ,
1965+ f"Export for Page id={ page_entity ['id' ]} not available" ,
1966+ ]
19631967
19641968 with self .assertRaises (Exception ) as cm :
19651969 self .sg .export_page (page_entity ["id" ], "csv" )
1966- self .assertIn (
1967- f"This functionality is currently not available" , str (cm .exception )
1968- )
1970+ msg = str (cm .exception )
1971+ self .assertIn (msg , error_messages )
19691972
19701973 with self .assertRaises (Exception ) as cm :
19711974 self .sg .export_page (page_entity ["id" ], "csv" , layout_name = "My Layout" )
1972- self .assertIn (
1973- f"This functionality is currently not available" , str (cm .exception )
1974- )
1975+ msg = str (cm .exception )
1976+ self .assertIn (msg , error_messages )
19751977
19761978 def test_export_page_format_missing (self ):
19771979 """
You can’t perform that action at this time.
0 commit comments