macflorek

test_project.py

Sep 12th, 2023
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. import sys,pytest
  2. from project import check_uom,check_ingredient_validity,get_ingredient_balance_for_recipe
  3.  
  4. def test_check_uom():
  5.     assert check_uom("wrong unit")==False
  6.     assert check_uom("lbf")==False
  7.     assert check_uom("piece")==True
  8.     assert check_uom("l")==True
  9.     assert check_uom("L")==True
Advertisement
Add Comment
Please, Sign In to add comment