Skip to content

Commit 893e412

Browse files
committed
Ensuring updates are finished before testing
1 parent a17f88f commit 893e412

16 files changed

+16
-0
lines changed

bigml/tests/create_association_steps.py

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def i_update_association_name(step, name):
7979
{'name': name})
8080
world.status = resource['code']
8181
eq_(world.status, HTTP_ACCEPTED)
82+
world.api.ok(resource)
8283
world.location = resource['location']
8384
world.association = resource['object']
8485

bigml/tests/create_cluster_steps.py

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def make_the_cluster_shared(step):
9393
{'shared': True})
9494
world.status = resource['code']
9595
eq_(world.status, HTTP_ACCEPTED)
96+
world.api.ok(resource)
9697
world.location = resource['location']
9798
world.cluster = resource['object']
9899

bigml/tests/create_configuration_steps.py

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def i_update_configuration(step, changes):
3939
world.configuration["resource"], changes)
4040
world.status = resource['code']
4141
eq_(world.status, HTTP_ACCEPTED)
42+
world.api.ok(resource)
4243
world.location = resource['location']
4344
world.configuration = resource['object']
4445

bigml/tests/create_correlation_steps.py

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def i_update_correlation_name(step, name):
4343
{'name': name})
4444
world.status = resource['code']
4545
eq_(world.status, HTTP_ACCEPTED)
46+
world.api.ok(resource)
4647
world.location = resource['location']
4748
world.correlation = resource['object']
4849

bigml/tests/create_dataset_steps.py

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def make_the_dataset_public(step):
8989
{'private': False})
9090
world.status = resource['code']
9191
eq_(world.status, HTTP_ACCEPTED)
92+
world.api.ok(resource)
9293
world.location = resource['location']
9394
world.dataset = resource['object']
9495

bigml/tests/create_execution_steps.py

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def i_update_an_execution(step, param, param_value):
7878
{param: param_value})
7979
world.status = resource['code']
8080
eq_(world.status, HTTP_ACCEPTED)
81+
world.api.ok(resource)
8182
world.location = resource['location']
8283
world.execution = resource['object']
8384

bigml/tests/create_lda_steps.py

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def i_update_topic_model_name(step, name):
7272
{'name': name})
7373
world.status = resource['code']
7474
eq_(world.status, HTTP_ACCEPTED)
75+
world.api.ok(resource)
7576
world.location = resource['location']
7677
world.topic_model = resource['object']
7778

bigml/tests/create_linear_steps.py

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def i_update_linear_regression_name(step, name):
7979
{'name': name})
8080
world.status = resource['code']
8181
eq_(world.status, HTTP_ACCEPTED)
82+
world.api.ok(resource)
8283
world.location = resource['location']
8384
world.linear_regression = resource['object']
8485

bigml/tests/create_model_steps.py

+1
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ def i_update_optiml_name(step, name):
410410
{'name': name})
411411
world.status = resource['code']
412412
eq_(world.status, HTTP_ACCEPTED)
413+
world.api.ok(resource)
413414
world.location = resource['location']
414415
world.optiml = resource['object']
415416

bigml/tests/create_pca_steps.py

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def i_update_pca_name(step, name):
6565
{'name': name})
6666
world.status = resource['code']
6767
eq_(world.status, HTTP_ACCEPTED)
68+
world.api.ok(resource)
6869
world.location = resource['location']
6970
world.pca = resource['object']
7071

bigml/tests/create_project_steps.py

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def i_update_project_name_with(step, name=""):
4444
{"name": name})
4545
world.status = resource['code']
4646
eq_(world.status, HTTP_ACCEPTED)
47+
world.api.ok(resource)
4748
world.project = resource['object']
4849

4950

bigml/tests/create_sample_steps.py

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def i_update_sample_name(step, name):
4444
{'name': name})
4545
world.status = resource['code']
4646
eq_(world.status, HTTP_ACCEPTED)
47+
world.api.ok(resource)
4748
world.location = resource['location']
4849
world.sample = resource['object']
4950

bigml/tests/create_script_steps.py

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def i_update_a_script(step, param, param_value):
6363
{param: param_value})
6464
world.status = resource['code']
6565
eq_(world.status, HTTP_ACCEPTED)
66+
world.api.ok(resource)
6667
world.location = resource['location']
6768
world.script = resource['object']
6869

bigml/tests/create_source_steps.py

+1
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ def i_update_source_with(step, data="{}"):
210210
resource = world.api.update_source(world.source.get('resource'), json.loads(data))
211211
world.status = resource['code']
212212
eq_(world.status, HTTP_ACCEPTED)
213+
world.api.ok(resource)
213214

214215

215216
def source_has_args(step, args="{}"):

bigml/tests/create_statistical_tst_steps.py

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def i_update_tst_name(step, name):
4545
world.statistical_test['resource'], {'name': name})
4646
world.status = resource['code']
4747
eq_(world.status, HTTP_ACCEPTED)
48+
world.api.ok(resource)
4849
world.location = resource['location']
4950
world.statistical_test = resource['object']
5051

bigml/tests/create_time_series_steps.py

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def i_update_time_series_name(step, name):
6666
{'name': name})
6767
world.status = resource['code']
6868
eq_(world.status, HTTP_ACCEPTED)
69+
world.api.ok(resource)
6970
world.location = resource['location']
7071
world.time_series = resource['object']
7172

0 commit comments

Comments
 (0)