summaryrefslogtreecommitdiffstats
path: root/devel/tests/test_pgp_import.py
blob: 2b41b9804ef3b5b567fbec986dfe7d82aad61a6f (plain)
1
2
3
4
5
6
7
8
9
10
11
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))