diff options
author | jelle van der Waa <jelle@vdwaa.nl> | 2018-11-30 19:10:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-30 19:10:20 +0100 |
commit | 469315893d07a79bab2c198bd4fbc74506778c9c (patch) | |
tree | 4301fcaf4c27c02adf3526f82cad0a7c09a32590 | |
parent | c51bfe07f4350e24a7014382d9c7a3d21f60ff9a (diff) | |
parent | 8609510681a79e2bd46a85c5b98cf97a26ca6b84 (diff) | |
download | archweb-469315893d07a79bab2c198bd4fbc74506778c9c.tar.gz archweb-469315893d07a79bab2c198bd4fbc74506778c9c.zip |
Merge pull request #164 from jelly/tests_cov
Tests cov
-rw-r--r-- | packages/alpm.py | 6 | ||||
-rw-r--r-- | packages/tests.py | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/packages/alpm.py b/packages/alpm.py index a2efd619..027fadc9 100644 --- a/packages/alpm.py +++ b/packages/alpm.py @@ -3,7 +3,7 @@ from ctypes.util import find_library import operator -def load_alpm(name=None): +def load_alpm(name=None): # pragma: no cover # Load the alpm library and set up some of the functions we might use if name is None: name = find_library('alpm') @@ -62,14 +62,14 @@ class AlpmAPI(object): return func(res, 0) -def main(): +def main(): # pragma: no cover api = AlpmAPI() print(api.version()) print(api.vercmp(1, 2)) print(api.compare_versions(1, '<', 2)) -if __name__ == '__main__': +if __name__ == '__main__': # pragma: no cover main() # vim: set ts=4 sw=4 et: diff --git a/packages/tests.py b/packages/tests.py index 373f85de..c41db99a 100644 --- a/packages/tests.py +++ b/packages/tests.py @@ -354,5 +354,9 @@ class AdoptOrphanPackage(TransactionTestCase): self.assertEqual(response.status_code, 200) self.assertIn('Are you trying to adopt or disown', response.content) + def test_stale_relations(self): + response = self.client.get('/packages/stale_relations/') + self.assertEqual(response.status_code, 200) + # vim: set ts=4 sw=4 et: |