diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-09-05 18:30:07 +0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-09-10 09:21:35 +0200 |
commit | f858f8754f400fcf7bb7d3199fcb62634334aba7 (patch) | |
tree | 87407467c08a337de1afa9e49ef0bcf44ddd539e /tests | |
parent | 92f29be10aef6efc009716b285e6235af75e2093 (diff) | |
download | git-buildpackage-f858f8754f400fcf7bb7d3199fcb62634334aba7.tar.gz git-buildpackage-f858f8754f400fcf7bb7d3199fcb62634334aba7.tar.bz2 git-buildpackage-f858f8754f400fcf7bb7d3199fcb62634334aba7.zip |
tests: add some docstrings to git submodule tests
Change-Id: I0ba9e6b59e2a819b5cde1be6fbb53b8ecbb67025
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests')
-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 4a9ff399..6e84bdeb 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) |