-def prop_table(table_factory):
- table_factory('nominatim_properties', 'property TEXT, value TEXT')
+def property_factory(property_table, temp_db_cursor):
+ """ A function fixture that adds a property into the property table.
+ """
+ def _add_property(name, value):
+ temp_db_cursor.execute("INSERT INTO nominatim_properties VALUES(%s, %s)",
+ (name, value))