Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rustprooflabs committed Aug 6, 2024
1 parent 4be8bf3 commit bdbbdef
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions docker/tests/test_geofabrik.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def setUp(self):
pgosm_date=PGOSM_DATE,
layerset=LAYERSET,
layerset_path=None,
replication=False,
schema_name='osm')
schema_name='osm',
skip_nested=True)


def tearDown(self):
Expand All @@ -44,8 +44,8 @@ def test_get_region_filename_returns_region_when_subregion_None(self):
pgosm_date=PGOSM_DATE,
layerset=LAYERSET,
layerset_path=None,
replication=False,
schema_name='osm')
schema_name='osm',
skip_nested=True)

result = geofabrik.get_region_filename()
expected = f'{REGION_US}-latest.osm.pbf'
Expand Down
28 changes: 14 additions & 14 deletions docker/tests/test_pgosm_flex.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def setUp(self):
pgosm_date=PGOSM_DATE,
layerset=LAYERSET,
layerset_path=None,
replication=False,
schema_name='osm')
schema_name='osm',
skip_nested=True)


def tearDown(self):
Expand Down Expand Up @@ -91,8 +91,8 @@ def test_get_export_filename_region_only(self):
pgosm_date=PGOSM_DATE,
layerset=LAYERSET,
layerset_path=None,
replication=False,
schema_name='osm')
schema_name='osm',
skip_nested=True)

input_file = None
result = pgosm_flex.get_export_filename(input_file)
Expand All @@ -109,8 +109,8 @@ def test_layerset_include_place_returns_boolean(self):
pgosm_date=PGOSM_DATE,
layerset=LAYERSET,
layerset_path=layerset_path,
replication=False,
schema_name='osm')
schema_name='osm',
skip_nested=True)

paths = pgosm_flex.get_paths()
result = pgosm_flex.layerset_include_place(flex_path=paths['flex_path'])
Expand All @@ -128,8 +128,8 @@ def test_layerset_include_place_returns_True_with_default_layerset(self):
pgosm_date=PGOSM_DATE,
layerset=LAYERSET,
layerset_path=layerset_path,
replication=False,
schema_name='osm')
schema_name='osm',
skip_nested=True)

paths = pgosm_flex.get_paths()
actual = pgosm_flex.layerset_include_place(flex_path=paths['flex_path'])
Expand All @@ -147,8 +147,8 @@ def test_layerset_include_place_returns_false_when_place_false_in_ini(self):
pgosm_date=PGOSM_DATE,
layerset=layerset,
layerset_path=layerset_path,
replication=False,
schema_name='osm')
schema_name='osm',
skip_nested=True)

paths = pgosm_flex.get_paths()
actual = pgosm_flex.layerset_include_place(flex_path=paths['flex_path'])
Expand All @@ -166,8 +166,8 @@ def test_layerset_include_place_returns_false_when_place_missing_in_ini(self):
pgosm_date=PGOSM_DATE,
layerset=layerset,
layerset_path=layerset_path,
replication=False,
schema_name='osm')
schema_name='osm',
skip_nested=True)

paths = pgosm_flex.get_paths()
actual = pgosm_flex.layerset_include_place(flex_path=paths['flex_path'])
Expand All @@ -185,8 +185,8 @@ def test_layerset_include_place_returns_true_when_place_true_in_ini(self):
pgosm_date=PGOSM_DATE,
layerset=layerset,
layerset_path=layerset_path,
replication=False,
schema_name='osm')
schema_name='osm',
skip_nested=True)

paths = pgosm_flex.get_paths()
actual = pgosm_flex.layerset_include_place(flex_path=paths['flex_path'])
Expand Down

0 comments on commit bdbbdef

Please sign in to comment.