Skip to content

Commit

Permalink
Add test cases for the validaotin test
Browse files Browse the repository at this point in the history
  • Loading branch information
IbrahimNM committed Apr 13, 2019
1 parent 05aa0e9 commit 3643be8
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions tests/SeefoodAI_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,22 @@ def test_process():
def test_pathValidation():
''' TODO: Test the Validation unit '''
current = SeefoodAI()
pathState = current.pathValidation("iSeefood/samples/cookies.png")
assert pathState == True, "Validation Test"
''' Pass an integar '''
pathState = current.pathValidation(10)
assert pathState == False, "Parameter type Test #1"

''' Pass a string '''
pathState = current.pathValidation("sample/cookies.png")
assert pathState == True, "Parameter type Test #2"

''' Pass empty '''
pathState = current.pathValidation("")
assert pathState == True, "Parameter type Test #2"

''' Pass bool '''
pathState = current.pathValidation(True)
assert pathState == False, "Parameter type Test #2"


def test_pathVerification():
''' TODO: Test the Verification unit '''
Expand Down

0 comments on commit 3643be8

Please sign in to comment.