Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Jan 3, 2024
1 parent 4266318 commit d5f9724
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spinnaker_testbase/test_no_job_destroy.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@

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

def test_no_destory_file(self):
"""
Checks for the error file and prints it out if found
:raise AssertionError: if the error file exists
"""
if os.path.exists(self.error_file()):
with open(self.error_file(), encoding="utf-8") as error_file:
error_text = error_file.read()
Expand Down

0 comments on commit d5f9724

Please sign in to comment.