diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2018-11-30 21:02:53 +0100 |
---|---|---|
committer | Jelle van der Waa <jelle@vdwaa.nl> | 2018-11-30 21:02:53 +0100 |
commit | 890937ac9fde08789f6ff1f9c85474706d8aca37 (patch) | |
tree | f0b4b136ecd463ce3bcef2586dfca5e7069cdf80 /devel | |
parent | 4e08437a3307192eaa8b8282cf46ca8b859c6b38 (diff) | |
download | archweb-890937ac9fde08789f6ff1f9c85474706d8aca37.tar.gz archweb-890937ac9fde08789f6ff1f9c85474706d8aca37.zip |
devel: add pgp_import basic test
Diffstat (limited to 'devel')
-rw-r--r-- | devel/tests/test_pgp_import.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/devel/tests/test_pgp_import.py b/devel/tests/test_pgp_import.py new file mode 100644 index 00000000..2b41b980 --- /dev/null +++ b/devel/tests/test_pgp_import.py @@ -0,0 +1,12 @@ +from django.core.management import call_command +from django.core.management.base import CommandError +from django.test import TransactionTestCase + + +class PGPImportTest(TransactionTestCase): + fixtures = ['main/fixtures/arches.json', 'main/fixtures/repos.json'] + + def test_pgp_import(self): + with self.assertRaises(CommandError) as e: + call_command('pgp_import') + self.assertIn('keyring_path', str(e.exception)) |