From 55e32b31a830a56f587377b2b49799404d033e2e Mon Sep 17 00:00:00 2001 From: Vitali Shulha Date: Tue, 6 Aug 2024 12:42:25 +0400 Subject: [PATCH 1/3] Create Python/src/main/com/github/vitalliuss/helloci/app.py --- Python/src/main/com/github/vitalliuss/helloci/app.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Python/src/main/com/github/vitalliuss/helloci/app.py diff --git a/Python/src/main/com/github/vitalliuss/helloci/app.py b/Python/src/main/com/github/vitalliuss/helloci/app.py new file mode 100644 index 0000000..045f549 --- /dev/null +++ b/Python/src/main/com/github/vitalliuss/helloci/app.py @@ -0,0 +1,12 @@ +# Hello CI! + +def main(): + print("Hello CI!") + + +def do_nothing(): + # do nothing + pass + +if __name__ == "__main__": + main() \ No newline at end of file From 481962fed148584ed5671cd37bb766b49c9785e5 Mon Sep 17 00:00:00 2001 From: Vitali Shulha Date: Tue, 6 Aug 2024 12:42:35 +0400 Subject: [PATCH 2/3] Create Python/src/main/com/github/vitalliuss/helloci/empty_class.py --- .../com/github/vitalliuss/helloci/empty_class.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Python/src/main/com/github/vitalliuss/helloci/empty_class.py diff --git a/Python/src/main/com/github/vitalliuss/helloci/empty_class.py b/Python/src/main/com/github/vitalliuss/helloci/empty_class.py new file mode 100644 index 0000000..7659a48 --- /dev/null +++ b/Python/src/main/com/github/vitalliuss/helloci/empty_class.py @@ -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 \ No newline at end of file From a73f7f7e54d80b3b038a97a7aee009af2ef74a40 Mon Sep 17 00:00:00 2001 From: Vitali Shulha Date: Tue, 6 Aug 2024 12:42:49 +0400 Subject: [PATCH 3/3] Create Python/src/test/com/github/vitalliuss/helloci/app_test.py --- .../com/github/vitalliuss/helloci/app_test.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Python/src/test/com/github/vitalliuss/helloci/app_test.py diff --git a/Python/src/test/com/github/vitalliuss/helloci/app_test.py b/Python/src/test/com/github/vitalliuss/helloci/app_test.py new file mode 100644 index 0000000..c42a69d --- /dev/null +++ b/Python/src/test/com/github/vitalliuss/helloci/app_test.py @@ -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() \ No newline at end of file