Skip to content

Commit 50b8cd3

Browse files
committed
Fixing local pipeline test
1 parent 9a50709 commit 50b8cd3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bigml/tests/compare_pipeline_steps.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ def i_expand_file_with_models_list(step, pipeline_file, models_list):
3232
for resource_id in models_list:
3333
inner_files.append(resource_id.replace("/", "_"))
3434

35-
with zipfile.ZipFile(res_filename(pipeline_file), 'r') as zip_ref:
35+
pipeline_file = res_filename(pipeline_file)
36+
with zipfile.ZipFile(pipeline_file, 'r') as zip_ref:
3637
filenames = [os.path.basename(filename) for
3738
filename in zip_ref.namelist()]
3839
assert all(filename in filenames for filename in inner_files)
39-
zip_ref.extractall()
40-
40+
zip_ref.extractall(os.path.dirname(pipeline_file))
4141

4242

4343
#@step(r'I create a local pipeline for "(.*)" named "(.*)"$')

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy