File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 55
66static testing::db::import_t db;
77
8- TEST_CASE (" no invalid geometries" )
8+ static char const *const conf_file = " test_output_flex_area.lua" ;
9+ static char const *const data_file = " test_output_pgsql_validgeom.osm" ;
10+
11+ TEST_CASE (" no invalid geometries should end up in the database" )
912{
10- REQUIRE_NOTHROW (
11- db.run_file (testing::opt_t ().slim ().flex (" test_output_flex.lua" ),
12- " test_output_pgsql_validgeom.osm" ));
13+ options_t const options = testing::opt_t ().flex (conf_file);
1314
14- auto conn = db.db (). connect ( );
15+ REQUIRE_NOTHROW ( db.run_file (options, data_file) );
1516
16- conn.require_has_table (" osm2pgsql_test_point" );
17- conn.require_has_table (" osm2pgsql_test_line" );
18- conn.require_has_table (" osm2pgsql_test_polygon" );
19- conn.require_has_table (" osm2pgsql_test_route" );
17+ auto conn = db.db ().connect ();
2018
2119 REQUIRE (12 == conn.get_count (" osm2pgsql_test_polygon" ));
2220 REQUIRE (0 ==
You can’t perform that action at this time.
0 commit comments