added pass and fail tests

This commit is contained in:
Joshua Burman 2022-04-17 23:33:22 -04:00
parent 41856322f8
commit e3f6c97503
2 changed files with 5 additions and 3 deletions

View File

@ -27,8 +27,6 @@ class ObjectiveFunction(BaseModel):
else:
for target in targets:
target.drift = round(target.drift + amount, 2)
print(self.tif_targets)
print(self.tcc_targets)
return amount
def update_targets_drift(self, amount: float = 0.0):

View File

@ -3,5 +3,9 @@ def func(x):
return x + 1
def test_answer():
def test_pass():
assert func(4) == 5
def test_failure():
assert func(3) == 5