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
12 changes: 12 additions & 0 deletions Python/src/main/com/github/vitalliuss/helloci/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Hello CI!

def main():
print("Hello CI!")


def do_nothing():
# do nothing
pass

if __name__ == "__main__":
main()
13 changes: 13 additions & 0 deletions Python/src/main/com/github/vitalliuss/helloci/empty_class.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Empty class for Cobertura code coverage

class EmptyClass:

@staticmethod
def empty_method():
# empty
pass

@staticmethod
def unused_method():
# do not use it
pass
24 changes: 24 additions & 0 deletions Python/src/test/com/github/vitalliuss/helloci/app_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import unittest
from app import App
from empty_class import EmptyClass

class AppTest(unittest.TestCase):

def test_should_be_passed(self):
self.assertTrue(True)

def test_should_be_failed(self):
self.assertTrue(False)

@unittest.skip("Not implemented yet")
def test_should_be_skipped(self):
self.assertTrue(True)

def test_another_method(self):
App.do_nothing()

def test_another_class(self):
EmptyClass.empty_method()

if __name__ == '__main__':
unittest.main()