@@ -136,7 +136,7 @@ def test_site_data_io_import_csv_data_error(self, users, campaigns):
136136 csv_file = "Name,Description,IFC_ID\n " + 100 * "A" + ",Great site 1,\n "
137137 with CurrentUser (admin_user ):
138138 with pytest .raises (
139- SitesCSVIOError , match = f" Site \ "{ 100 * 'A' } \ " can't be created."
139+ SitesCSVIOError , match = f' Site "{ 100 * "A" } " can\ ' t be created.'
140140 ):
141141 sites_csv_io .import_csv (campaign_1 , sites_csv = csv_file )
142142
@@ -282,7 +282,7 @@ def test_building_data_io_import_csv_data_error(self, users, campaigns, sites):
282282 )
283283 with CurrentUser (admin_user ):
284284 with pytest .raises (
285- SitesCSVIOError , match = f" Building \ "{ 100 * 'A' } \ " can't be created."
285+ SitesCSVIOError , match = f' Building "{ 100 * "A" } " can\ ' t be created.'
286286 ):
287287 sites_csv_io .import_csv (campaign_1 , buildings_csv = csv_file )
288288
@@ -449,7 +449,7 @@ def test_storey_data_io_import_csv_data_error(
449449 )
450450 with CurrentUser (admin_user ):
451451 with pytest .raises (
452- SitesCSVIOError , match = f" Storey \ "{ 100 * 'A' } \ " can't be created."
452+ SitesCSVIOError , match = f' Storey "{ 100 * "A" } " can\ ' t be created.'
453453 ):
454454 sites_csv_io .import_csv (campaign_1 , storeys_csv = csv_file )
455455
@@ -642,7 +642,7 @@ def test_space_data_io_import_csv_data_error(
642642 )
643643 with CurrentUser (admin_user ):
644644 with pytest .raises (
645- SitesCSVIOError , match = f" Space \ "{ 100 * 'A' } \ " can't be created."
645+ SitesCSVIOError , match = f' Space "{ 100 * "A" } " can\ ' t be created.'
646646 ):
647647 sites_csv_io .import_csv (campaign_1 , spaces_csv = csv_file )
648648
@@ -764,7 +764,7 @@ def test_zone_data_io_import_csv_data_error(self, users, campaigns):
764764 csv_file = "Name,Description,IFC_ID\n " + 100 * "A" + ",Great zone 1,\n "
765765 with CurrentUser (admin_user ):
766766 with pytest .raises (
767- SitesCSVIOError , match = f" Zone \ "{ 100 * 'A' } \ " can't be created."
767+ SitesCSVIOError , match = f' Zone "{ 100 * "A" } " can\ ' t be created.'
768768 ):
769769 sites_csv_io .import_csv (campaign_1 , zones_csv = csv_file )
770770
0 commit comments