Skip to content

Commit 617a59a

Browse files
authored
fix(tests): fixing indentation that causes early return (#48)
1 parent 307856b commit 617a59a

File tree

6 files changed

+34
-30
lines changed

6 files changed

+34
-30
lines changed

tests/test_axp_calculations_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ def read_calculation_status(test_context):
7979
time.sleep(int(max_age))
8080
status_response = self.axp_optimizer_api.get_optimization_status_by_id(id=calculation_id)
8181

82-
return {
83-
"continue_workflow": True,
84-
"next_request": read_result_step_name,
85-
"test_context": test_context
86-
}
82+
return {
83+
"continue_workflow": True,
84+
"next_request": read_result_step_name,
85+
"test_context": test_context
86+
}
8787

8888
def read_calculation_result(test_context):
8989
calculation_id = test_context["calculation_id"]

tests/test_bpm_calculations_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ def read_calculation_status(test_context):
7979
time.sleep(int(max_age))
8080
status_response = self.bpm_optimizer_api.get_optimization_status_by_id(id=calculation_id)
8181

82-
return {
83-
"continue_workflow": True,
84-
"next_request": read_result_step_name,
85-
"test_context": test_context
86-
}
82+
return {
83+
"continue_workflow": True,
84+
"next_request": read_result_step_name,
85+
"test_context": test_context
86+
}
8787

8888
def read_calculation_result(test_context):
8989
calculation_id = test_context["calculation_id"]

tests/test_pa_calculations_api.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,12 @@ def read_calculation_status(test_context):
8585
status_response = self.pa_calculations_api.get_calculation_status_by_id(id=calculation_id)
8686

8787
test_context["calculation_units"] = list(status_response[0].data.units)[0]
88-
return {
89-
"continue_workflow": True,
90-
"next_request": read_result_step_name,
91-
"test_context": test_context
92-
}
88+
89+
return {
90+
"continue_workflow": True,
91+
"next_request": read_result_step_name,
92+
"test_context": test_context
93+
}
9394

9495
def read_calculation_unit_result(test_context):
9596
calculation_id = test_context["calculation_id"]

tests/test_pub_calculations_api.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,12 @@ def read_calculation_status(test_context):
7474

7575
test_context["calculation_units"] = status_response[0].data.units.items()[
7676
0]
77-
return {
78-
"continue_workflow": True,
79-
"next_request": read_result_step_name,
80-
"test_context": test_context
81-
}
77+
78+
return {
79+
"continue_workflow": True,
80+
"next_request": read_result_step_name,
81+
"test_context": test_context
82+
}
8283

8384
def read_calculation_unit_result(test_context):
8485
calculation_id = test_context["calculation_id"]

tests/test_spar_calculations_api.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,12 @@ def read_calculation_status(test_context):
8585

8686
test_context["calculation_units"] = status_response[0].data.units.items()[
8787
0]
88-
return {
89-
"continue_workflow": True,
90-
"next_request": read_result_step_name,
91-
"test_context": test_context
92-
}
88+
89+
return {
90+
"continue_workflow": True,
91+
"next_request": read_result_step_name,
92+
"test_context": test_context
93+
}
9394

9495
def read_calculation_unit_result(test_context):
9596
calculation_id = test_context["calculation_id"]

tests/test_vault_calculations_api.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,12 @@ def read_calculation_status(test_context):
9393

9494
test_context["calculation_units"] = status_response[0].data.units.items()[
9595
0]
96-
return {
97-
"continue_workflow": True,
98-
"next_request": read_result_step_name,
99-
"test_context": test_context
100-
}
96+
97+
return {
98+
"continue_workflow": True,
99+
"next_request": read_result_step_name,
100+
"test_context": test_context
101+
}
101102

102103
def read_calculation_unit_result(test_context):
103104
calculation_id = test_context["calculation_id"]

0 commit comments

Comments
 (0)