Skip to content

Commit cf710ff

Browse files
committed
blacken
1 parent ebeafad commit cf710ff

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

test/test_mtc.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import pandas.testing as pdt
1010
import pytest
1111

12-
from activitysim.core import testing, workflow
12+
from activitysim.core import workflow
1313

1414

1515
def _example_path(dirname):
@@ -242,9 +242,7 @@ def test_mtc_extended_progressive(chunk_training_mode, recode_pipeline_columns):
242242

243243
working_dir = Path(_example_path("."))
244244

245-
output_trips_table = {
246-
"tablename": "trips"
247-
}
245+
output_trips_table = {"tablename": "trips"}
248246
if recode_pipeline_columns:
249247
output_trips_table["decode_columns"] = {
250248
"origin": "land_use.zone_id",
@@ -287,7 +285,9 @@ def test_mtc_extended_progressive(chunk_training_mode, recode_pipeline_columns):
287285
assert state.settings.chunk_size == 0
288286
assert not state.settings.sharrow
289287

290-
ref_pipeline = Path(__file__).parent.joinpath(f"reference-pipeline-extended-recode{recode_pipeline_columns}.zip")
288+
ref_pipeline = Path(__file__).parent.joinpath(
289+
f"reference-pipeline-extended-recode{recode_pipeline_columns}.zip"
290+
)
291291
if not ref_pipeline.exists():
292292
state.settings.cleanup_pipeline_after_run = False
293293

@@ -296,7 +296,9 @@ def test_mtc_extended_progressive(chunk_training_mode, recode_pipeline_columns):
296296
if ref_pipeline.exists():
297297
try:
298298
state.checkpoint.check_against(
299-
Path(__file__).parent.joinpath(f"reference-pipeline-extended-recode{recode_pipeline_columns}.zip"),
299+
Path(__file__).parent.joinpath(
300+
f"reference-pipeline-extended-recode{recode_pipeline_columns}.zip"
301+
),
300302
checkpoint_name=step_name,
301303
)
302304
except Exception:
@@ -310,7 +312,10 @@ def test_mtc_extended_progressive(chunk_training_mode, recode_pipeline_columns):
310312
if not ref_pipeline.exists():
311313
# make new reference pipeline file if it is missing
312314
import shutil
313-
shutil.make_archive(ref_pipeline.with_suffix(""), 'zip', state.checkpoint.store.filename)
315+
316+
shutil.make_archive(
317+
ref_pipeline.with_suffix(""), "zip", state.checkpoint.store.filename
318+
)
314319

315320

316321
if __name__ == "__main__":

0 commit comments

Comments
 (0)