added pass and fail tests
This commit is contained in:
parent
41856322f8
commit
e3f6c97503
@ -27,8 +27,6 @@ class ObjectiveFunction(BaseModel):
|
|||||||
else:
|
else:
|
||||||
for target in targets:
|
for target in targets:
|
||||||
target.drift = round(target.drift + amount, 2)
|
target.drift = round(target.drift + amount, 2)
|
||||||
print(self.tif_targets)
|
|
||||||
print(self.tcc_targets)
|
|
||||||
return amount
|
return amount
|
||||||
|
|
||||||
def update_targets_drift(self, amount: float = 0.0):
|
def update_targets_drift(self, amount: float = 0.0):
|
||||||
|
@ -3,5 +3,9 @@ def func(x):
|
|||||||
return x + 1
|
return x + 1
|
||||||
|
|
||||||
|
|
||||||
def test_answer():
|
def test_pass():
|
||||||
|
assert func(4) == 5
|
||||||
|
|
||||||
|
|
||||||
|
def test_failure():
|
||||||
assert func(3) == 5
|
assert func(3) == 5
|
Loading…
x
Reference in New Issue
Block a user