Skip to content

Commit bdbbdef

Browse files
committed
fix tests
1 parent 4be8bf3 commit bdbbdef

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

docker/tests/test_geofabrik.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def setUp(self):
2222
pgosm_date=PGOSM_DATE,
2323
layerset=LAYERSET,
2424
layerset_path=None,
25-
replication=False,
26-
schema_name='osm')
25+
schema_name='osm',
26+
skip_nested=True)
2727

2828

2929
def tearDown(self):
@@ -44,8 +44,8 @@ def test_get_region_filename_returns_region_when_subregion_None(self):
4444
pgosm_date=PGOSM_DATE,
4545
layerset=LAYERSET,
4646
layerset_path=None,
47-
replication=False,
48-
schema_name='osm')
47+
schema_name='osm',
48+
skip_nested=True)
4949

5050
result = geofabrik.get_region_filename()
5151
expected = f'{REGION_US}-latest.osm.pbf'

docker/tests/test_pgosm_flex.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ def setUp(self):
1919
pgosm_date=PGOSM_DATE,
2020
layerset=LAYERSET,
2121
layerset_path=None,
22-
replication=False,
23-
schema_name='osm')
22+
schema_name='osm',
23+
skip_nested=True)
2424

2525

2626
def tearDown(self):
@@ -91,8 +91,8 @@ def test_get_export_filename_region_only(self):
9191
pgosm_date=PGOSM_DATE,
9292
layerset=LAYERSET,
9393
layerset_path=None,
94-
replication=False,
95-
schema_name='osm')
94+
schema_name='osm',
95+
skip_nested=True)
9696

9797
input_file = None
9898
result = pgosm_flex.get_export_filename(input_file)
@@ -109,8 +109,8 @@ def test_layerset_include_place_returns_boolean(self):
109109
pgosm_date=PGOSM_DATE,
110110
layerset=LAYERSET,
111111
layerset_path=layerset_path,
112-
replication=False,
113-
schema_name='osm')
112+
schema_name='osm',
113+
skip_nested=True)
114114

115115
paths = pgosm_flex.get_paths()
116116
result = pgosm_flex.layerset_include_place(flex_path=paths['flex_path'])
@@ -128,8 +128,8 @@ def test_layerset_include_place_returns_True_with_default_layerset(self):
128128
pgosm_date=PGOSM_DATE,
129129
layerset=LAYERSET,
130130
layerset_path=layerset_path,
131-
replication=False,
132-
schema_name='osm')
131+
schema_name='osm',
132+
skip_nested=True)
133133

134134
paths = pgosm_flex.get_paths()
135135
actual = pgosm_flex.layerset_include_place(flex_path=paths['flex_path'])
@@ -147,8 +147,8 @@ def test_layerset_include_place_returns_false_when_place_false_in_ini(self):
147147
pgosm_date=PGOSM_DATE,
148148
layerset=layerset,
149149
layerset_path=layerset_path,
150-
replication=False,
151-
schema_name='osm')
150+
schema_name='osm',
151+
skip_nested=True)
152152

153153
paths = pgosm_flex.get_paths()
154154
actual = pgosm_flex.layerset_include_place(flex_path=paths['flex_path'])
@@ -166,8 +166,8 @@ def test_layerset_include_place_returns_false_when_place_missing_in_ini(self):
166166
pgosm_date=PGOSM_DATE,
167167
layerset=layerset,
168168
layerset_path=layerset_path,
169-
replication=False,
170-
schema_name='osm')
169+
schema_name='osm',
170+
skip_nested=True)
171171

172172
paths = pgosm_flex.get_paths()
173173
actual = pgosm_flex.layerset_include_place(flex_path=paths['flex_path'])
@@ -185,8 +185,8 @@ def test_layerset_include_place_returns_true_when_place_true_in_ini(self):
185185
pgosm_date=PGOSM_DATE,
186186
layerset=layerset,
187187
layerset_path=layerset_path,
188-
replication=False,
189-
schema_name='osm')
188+
schema_name='osm',
189+
skip_nested=True)
190190

191191
paths = pgosm_flex.get_paths()
192192
actual = pgosm_flex.layerset_include_place(flex_path=paths['flex_path'])

0 commit comments

Comments
 (0)