diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/01_test_help.py | 4 | ||||
-rw-r--r-- | tests/02_test_upstream_source_tar_unpack.py (renamed from tests/02_test_import.py) | 2 | ||||
-rw-r--r-- | tests/03_test_dch_guess_version.py | 6 | ||||
-rw-r--r-- | tests/04_test_submodules.py (renamed from tests/04_test_gbp_submodules.py) | 2 | ||||
-rw-r--r-- | tests/05_test_detection.py | 4 | ||||
-rw-r--r-- | tests/06_test_upstream_source.py | 6 | ||||
-rw-r--r-- | tests/07_test_fastimport.py | 2 | ||||
-rw-r--r-- | tests/08_test_patch.py | 4 |
8 files changed, 26 insertions, 4 deletions
diff --git a/tests/01_test_help.py b/tests/01_test_help.py index 02b19c8a..cee79118 100644 --- a/tests/01_test_help.py +++ b/tests/01_test_help.py @@ -1,6 +1,6 @@ # vim: set fileencoding=utf-8 : -# -# check if --help works + +"""Check if --help works""" import os import unittest diff --git a/tests/02_test_import.py b/tests/02_test_upstream_source_tar_unpack.py index 6ded95af..9366dd95 100644 --- a/tests/02_test_import.py +++ b/tests/02_test_upstream_source_tar_unpack.py @@ -1,5 +1,7 @@ # vim: set fileencoding=utf-8 : +"""Test L{UpstreamSource}'s tarball unpack""" + import glob import os import shutil diff --git a/tests/03_test_dch_guess_version.py b/tests/03_test_dch_guess_version.py index 10343074..d954459d 100644 --- a/tests/03_test_dch_guess_version.py +++ b/tests/03_test_dch_guess_version.py @@ -1,3 +1,7 @@ +# vim: set fileencoding=utf-8 : + +"""Test L{Changelog}'s guess_version_from_upstream""" + import unittest from gbp.scripts import dch @@ -28,7 +32,7 @@ class MockedChangeLog(ChangeLog): class TestGuessVersionFromUpstream(unittest.TestCase): - """Dest guess_version_from_upstream""" + """Test guess_version_from_upstream""" def test_guess_no_epoch(self): """Guess the new version from the upstream tag""" repo = MockGitRepository(upstream_tag='upstream/1.1') diff --git a/tests/04_test_gbp_submodules.py b/tests/04_test_submodules.py index a20f668d..5ae1f5fa 100644 --- a/tests/04_test_gbp_submodules.py +++ b/tests/04_test_submodules.py @@ -1,5 +1,7 @@ # vim: set fileencoding=utf-8 : +"""Test submodule L{GitRepository} submodule methods""" + import os import shutil import tarfile diff --git a/tests/05_test_detection.py b/tests/05_test_detection.py index 2f58265c..d866d7d2 100644 --- a/tests/05_test_detection.py +++ b/tests/05_test_detection.py @@ -1,3 +1,7 @@ +# vim: set fileencoding=utf-8 : + +"""Test tarball compression type detection""" + import os import shutil import tempfile diff --git a/tests/06_test_upstream_source.py b/tests/06_test_upstream_source.py index e414fa43..96402f4e 100644 --- a/tests/06_test_upstream_source.py +++ b/tests/06_test_upstream_source.py @@ -1,4 +1,6 @@ -# Test the UpstreamSource class +# vim: set fileencoding=utf-8 : + +"""Test the L{UpstreamSource} class""" import glob import os @@ -20,6 +22,7 @@ class TestDir(unittest.TestCase): class TestTar(unittest.TestCase): + """Test if packing tar archives works""" def _check_tar(self, us, positive=[], negative=[]): t = tarfile.open(name=us.path, mode="r:bz2") for f in positive: @@ -64,6 +67,7 @@ class TestTar(unittest.TestCase): class TestZip(unittest.TestCase): + """Test if unpacking zip archives works""" def setUp(self): self.tmpdir = tempfile.mkdtemp(prefix='gbp_%s_' % __name__, dir='.') self.zipfile = os.path.join(self.tmpdir, "gbp-0.1.zip") diff --git a/tests/07_test_fastimport.py b/tests/07_test_fastimport.py index cfb560f8..7e38bf25 100644 --- a/tests/07_test_fastimport.py +++ b/tests/07_test_fastimport.py @@ -1,5 +1,7 @@ # vim: set fileencoding=utf-8 : +"""Test L{FastImport} class""" + import os import shutil import tarfile diff --git a/tests/08_test_patch.py b/tests/08_test_patch.py index 8735b16c..92a6739f 100644 --- a/tests/08_test_patch.py +++ b/tests/08_test_patch.py @@ -1,3 +1,7 @@ +# vim: set fileencoding=utf-8 : + +"""Test L{Patch} class""" + import os import unittest |