Skip to content

Commit f42c64f

Browse files
committed
Updating version file and fixing test
1 parent 134c68b commit f42c64f

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

bigml/tests/create_anomaly_steps.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ def i_check_anomaly_datasets_and_datasets_ids(step):
3030
list
3131
"""
3232
anomaly = world.anomaly
33-
ok_('datasets' in anomaly and anomaly['datasets'] == world.dataset_ids,
33+
ok_('datasets' in anomaly and
34+
anomaly['datasets'] == step.bigml["dataset_ids"],
3435
("The anomaly detector contains only %s and the dataset ids are %s" %
35-
(",".join(anomaly['datasets']), ",".join(world.dataset_ids))))
36+
(",".join(anomaly['datasets']), ",".join(step.bigml["dataset_ids"]))))
3637

3738

3839
def i_check_anomaly_dataset_and_datasets_ids(step):
@@ -113,7 +114,8 @@ def i_create_an_anomaly_with_params(step, parms=None):
113114

114115
def i_create_an_anomaly_from_dataset_list(step):
115116
"""Step: I create an anomaly detector from a dataset list"""
116-
resource = world.api.create_anomaly(world.dataset_ids, {'seed': 'BigML'})
117+
resource = world.api.create_anomaly(step.bigml["dataset_ids"],
118+
{'seed': 'BigML'})
117119
world.status = resource['code']
118120
eq_(world.status, HTTP_CREATED)
119121
world.location = resource['location']

bigml/tests/create_multimodel_steps.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@
1919

2020
def i_store_dataset_id(step):
2121
"""Step: I store the dataset id in a list"""
22-
world.dataset_ids.append(world.dataset['resource'])
22+
if step.bigml.get("dataset_ids") is None:
23+
step.bigml["dataset_ids"] = []
24+
step.bigml["dataset_ids"].append(world.dataset['resource'])
2325

2426

2527
def i_check_model_datasets_and_datasets_ids(step):
2628
"""Step: I check the model stems from the original dataset list"""
2729
model = world.model
28-
ok_('datasets' in model and model['datasets'] == world.dataset_ids,
30+
ok_('datasets' in model and model['datasets'] == step.bigml["dataset_ids"],
2931
("The model contains only %s and the dataset ids are %s" %
30-
(",".join(model['datasets']), ",".join(world.dataset_ids))))
32+
(",".join(model['datasets']), ",".join(step.bigml["dataset_ids"]))))

bigml/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '9.1.1'
1+
__version__ = '9.1.2'

0 commit comments

Comments
 (0)