Skip to content

Commit c34f172

Browse files
jayantktompntn
andauthored
Update pyth/tests/test_update_price.py
accept pr comment Co-authored-by: Tom Pointon <[email protected]>
1 parent e03a517 commit c34f172

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyth/tests/test_update_price.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,6 @@ def get_publisher_acc(product_acc):
116116
assert publisher_acc['price'] == new_values[product]['price']
117117
assert publisher_acc['conf'] == new_values[product]['conf']
118118

119-
expected_status = 'unknown' if new_values[product]['conf'] > new_values[product]['price'] / 20 else 'trading'
119+
conf_threshold = new_values[product]['price'] / 20
120+
expected_status = 'unknown' if new_values[product]['conf'] > conf_threshold else 'trading'
120121
assert publisher_acc['status'] == expected_status

0 commit comments

Comments
 (0)