Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ then run coverage, and output the results to codecov and the PR itself.
Also adds the coverage % and the build status to the repo homepage.
Looks like it is working

Testing things

15 changes: 12 additions & 3 deletions tests/test_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,26 @@

def IsOdd(n):
return n % 2 == 1

def IsEven(x):
return x % 2 == 0

class IsOddTests(unittest.TestCase):

def testOne(self):
self.failUnless(IsOdd(1))
self.failUnless(IsOdd(1))

def testtwo(self):
self.failIf(IsOdd(2))

class IsEvenTests(unittest.TestCase):

def testthree(self):
self.failUnless(IsEven(0))

def testfour(self):
self.failIf(IsEven(1))

'''
class IsEvenTests(unittest.TestCase):

Expand Down