test2 that should fail
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Benjamin Lejeune 2022-10-10 11:33:35 +02:00
parent 19d1598b3e
commit 2bf081c0fc
2 changed files with 1 additions and 6 deletions

View File

@ -7,8 +7,3 @@
def is_hello_world(text : str): def is_hello_world(text : str):
return text is not None and text.strip().lower() == "hello world" return text is not None and text.strip().lower() == "hello world"
print(is_hello_world("ok"))
print(is_hello_world("Hello World"))

View File

@ -6,7 +6,7 @@ from main import is_hello_world
class TestProject(unittest.TestCase): class TestProject(unittest.TestCase):
def test_when_text_is_hello_world_with_maj_then_work(self): def test_when_text_is_hello_world_with_maj_then_work(self):
self.assertTrue(is_hello_world("Hello world")) self.assertTrue(is_hello_world("Hello world NOOOO"))
if __name__ == '__main__': if __name__ == '__main__':