Ajout système de test
This commit is contained in:
parent
3c36e69cb9
commit
a343756049
0
__init__.py
Normal file
0
__init__.py
Normal file
13
tests.py
Normal file
13
tests.py
Normal file
@ -0,0 +1,13 @@
|
||||
import unittest
|
||||
|
||||
from main import is_hello_world
|
||||
|
||||
|
||||
class TestProject(unittest.TestCase):
|
||||
|
||||
def test_when_text_is_hello_world_with_maj_then_work(self):
|
||||
self.assertTrue(is_hello_world("Hello World"))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
Loading…
x
Reference in New Issue
Block a user