Skip to content

Commit

Permalink
module docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Jan 3, 2024
1 parent 6941e03 commit 4266318
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spinnaker_testbase/base_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@


class BaseTestCase(RootTestCase):
"""
This extends unittest.TestCase to offer extra functions as needed.
"""

def setUp(self):
self._setUp(sys.modules[self.__module__].__file__)
Expand Down
3 changes: 3 additions & 0 deletions spinnaker_testbase/root_script_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@


class RootScriptBuilder(object):
"""
Looks for example scripts that can be made into Integeration tests.
"""

def add_script(self, test_file, name, local_path, skip_imports):
"""
Expand Down
4 changes: 4 additions & 0 deletions spinnaker_testbase/root_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@


class RootTestCase(unittest.TestCase):
"""
This holds the code shared by the all test and script checkers
"""

def _setUp(self, script):
# Remove random effect for testing
Expand Down
3 changes: 3 additions & 0 deletions spinnaker_testbase/script_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def mockshow():


class ScriptChecker(RootTestCase):
"""
Will run a script. Typically as part of Integration Tests.
"""

def script_path(self, script):
class_file = sys.modules[self.__module__].__file__
Expand Down
4 changes: 4 additions & 0 deletions spinnaker_testbase/test_no_job_destroy.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@


class TestNoJobDestory(BaseTestCase):
"""
Used by Jenkins to check if a job was destroyed or something else wrote
to the error file.
"""

def test_no_destory_file(self):
if os.path.exists(self.error_file()):
Expand Down

0 comments on commit 4266318

Please sign in to comment.