diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-09-05 18:30:07 +0300 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-09-09 14:52:43 +0300 |
commit | 9aa4c48324440d13625f69dfb6f59bb0b1f548c8 (patch) | |
tree | 95023dcb448173c473bed2915f789bc729626ecb | |
parent | a4ffe1d6bc6c8dc0b91d4cb822b7436900cae826 (diff) | |
download | git-buildpackage-9aa4c48324440d13625f69dfb6f59bb0b1f548c8.tar.gz git-buildpackage-9aa4c48324440d13625f69dfb6f59bb0b1f548c8.tar.bz2 git-buildpackage-9aa4c48324440d13625f69dfb6f59bb0b1f548c8.zip |
tests: add some docstrings to git submodule tests
Change-Id: I0ba9e6b59e2a819b5cde1be6fbb53b8ecbb67025
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rw-r--r-- | tests/04_test_submodules.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/04_test_submodules.py b/tests/04_test_submodules.py index a810e126..2a3b67f3 100644 --- a/tests/04_test_submodules.py +++ b/tests/04_test_submodules.py @@ -25,6 +25,7 @@ tmpdir = None testfile_name = "testfile" class Submodule(object): + """Class representing remote repo for Git submodule""" def __init__(self, name, tmpdir): self.name = name self.dir = os.path.join(tmpdir, name) @@ -32,6 +33,7 @@ class Submodule(object): def setup(): + """Test module setup""" global repo, repodir, submodules, tmpdir tmpdir = context.new_tmpdir(__name__) @@ -45,6 +47,7 @@ def setup(): def teardown(): + """Test module teardown""" context.teardown() def test_empty_has_submodules(): @@ -53,6 +56,7 @@ def test_empty_has_submodules(): def _add_dummy_data(repo, msg): + """Commit dummy data to a Git repository""" shutil.copy(".git/HEAD", testfile_name) repo.add_files('.', force=True) repo.commit_all(msg) |