diff --git a/buildings/tests/gui/test_processes_edit_attribute_bulk_load.py b/buildings/tests/gui/test_processes_edit_attribute_bulk_load.py index 95f2bc12..22433b3d 100644 --- a/buildings/tests/gui/test_processes_edit_attribute_bulk_load.py +++ b/buildings/tests/gui/test_processes_edit_attribute_bulk_load.py @@ -409,7 +409,7 @@ def test_save_clicked(self): capture_method = capture_method.fetchall()[0][0] self.assertEqual("Unknown", capture_method) # suburb - sql = "SELECT suburb_4th FROM buildings_reference.suburb_locality WHERE suburb_locality_id = %s;" + sql = "SELECT name FROM buildings_reference.suburb_locality WHERE suburb_locality_id = %s;" suburb = db._execute(sql, (result[2],)) suburb = suburb.fetchall()[0][0] self.assertEqual("Hokowhitu", suburb) @@ -515,7 +515,7 @@ def test_edit_mutiple_attributes(self): capture_method = capture_method.fetchall()[0][0] self.assertEqual("Unknown", capture_method) # suburb - sql = "SELECT suburb_4th FROM buildings_reference.suburb_locality WHERE suburb_locality_id = %s;" + sql = "SELECT name FROM buildings_reference.suburb_locality WHERE suburb_locality_id = %s;" suburb = db._execute(sql, (result[2],)) suburb = suburb.fetchall()[0][0] self.assertEqual("Hokowhitu", suburb) diff --git a/buildings/tests/gui/test_processes_edit_attribute_production.py b/buildings/tests/gui/test_processes_edit_attribute_production.py index ca949605..b63c2ea7 100644 --- a/buildings/tests/gui/test_processes_edit_attribute_production.py +++ b/buildings/tests/gui/test_processes_edit_attribute_production.py @@ -203,7 +203,7 @@ def test_save_clicked(self): capture_method = capture_method.fetchall()[0][0] self.assertEqual("Unknown", capture_method) # suburb - sql = "SELECT suburb_4th FROM buildings_reference.suburb_locality WHERE suburb_locality_id = %s;" + sql = "SELECT name FROM buildings_reference.suburb_locality WHERE suburb_locality_id = %s;" suburb = db._execute(sql, (result[2],)) suburb = suburb.fetchall()[0][0] self.assertEqual("Hokowhitu", suburb) @@ -311,7 +311,7 @@ def test_edit_mutiple_attributes(self): capture_method = capture_method.fetchall()[0][0] self.assertEqual("Unknown", capture_method) # suburb - sql = "SELECT suburb_4th FROM buildings_reference.suburb_locality WHERE suburb_locality_id = %s;" + sql = "SELECT name FROM buildings_reference.suburb_locality WHERE suburb_locality_id = %s;" suburb = db._execute(sql, (result[2],)) suburb = suburb.fetchall()[0][0] self.assertEqual("Hokowhitu", suburb) diff --git a/buildings/tests/gui/test_processes_update_reference_data_admin_bdys.py b/buildings/tests/gui/test_processes_update_reference_data_admin_bdys.py index c13f90a8..69aec1f5 100644 --- a/buildings/tests/gui/test_processes_update_reference_data_admin_bdys.py +++ b/buildings/tests/gui/test_processes_update_reference_data_admin_bdys.py @@ -93,7 +93,7 @@ def tearDown(self): # count_added = result.fetchone()[0] # self.assertEqual(count_added, 1) # # updated suburb locality - # sql_updated = "SELECT suburb_4th FROM buildings_reference.suburb_locality WHERE external_suburb_locality_id = 101;" + # sql_updated = "SELECT name FROM buildings_reference.suburb_locality WHERE external_suburb_locality_id = 101;" # result = db._execute(sql_updated) # name_updated = result.fetchone()[0] # self.assertEqual(name_updated, "Kelburn North")