diff options
author | Jhon Honce <jhonce@redhat.com> | 2018-08-20 08:40:42 -0700 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-08-20 21:07:09 +0000 |
commit | 75588a4333aef6a3830cd120136a664418d336e9 (patch) | |
tree | 07f4db5eef955817acb0a9d4a8dae037748c543e /contrib/python/podman/test/podman_testcase.py | |
parent | 937398abcfa9848b36efd95d845d98d865578c71 (diff) | |
download | podman-75588a4333aef6a3830cd120136a664418d336e9.tar.gz podman-75588a4333aef6a3830cd120136a664418d336e9.tar.bz2 podman-75588a4333aef6a3830cd120136a664418d336e9.zip |
Add retry decorator for flakey tests
* Update doc strings
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Closes: #1302
Approved by: baude
Diffstat (limited to 'contrib/python/podman/test/podman_testcase.py')
-rw-r--r-- | contrib/python/podman/test/podman_testcase.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/python/podman/test/podman_testcase.py b/contrib/python/podman/test/podman_testcase.py index 731fa26fc..da73c1024 100644 --- a/contrib/python/podman/test/podman_testcase.py +++ b/contrib/python/podman/test/podman_testcase.py @@ -1,3 +1,4 @@ +"""Base for podman tests.""" import contextlib import functools import itertools @@ -16,6 +17,7 @@ class PodmanTestCase(unittest.TestCase): @classmethod def setUpClass(cls): + """Fixture to setup podman test case.""" if hasattr(PodmanTestCase, 'alpine_process'): PodmanTestCase.tearDownClass() @@ -91,6 +93,7 @@ class PodmanTestCase(unittest.TestCase): @classmethod def tearDownClass(cls): + """Fixture to clean up after podman unittest.""" try: PodmanTestCase.alpine_process.kill() assert 0 == PodmanTestCase.alpine_process.wait(500) @@ -104,5 +107,6 @@ class PodmanTestCase(unittest.TestCase): @contextlib.contextmanager def assertRaisesNotImplemented(self): + """Sugar for unimplemented varlink methods.""" with self.assertRaisesRegex(VarlinkError, MethodNotImplemented): yield |