summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2018-11-20 22:34:04 +0100
committerJelle van der Waa <jelle@vdwaa.nl>2018-11-20 22:34:04 +0100
commit68e96cb4a1c255691948f0173fdb9126b019f292 (patch)
tree8d45332401ae3dbdecdfcad6804e97e66bec6d08 /devel
parent87c63bd2c77e42b4ae0dde55ba10162c7be25fc6 (diff)
downloadarchweb-68e96cb4a1c255691948f0173fdb9126b019f292.tar.gz
archweb-68e96cb4a1c255691948f0173fdb9126b019f292.zip
devel: Add test for unsupported architecture
Diffstat (limited to 'devel')
-rw-r--r--devel/tests/test_reporead.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/devel/tests/test_reporead.py b/devel/tests/test_reporead.py
index 62db32ec..f3c17375 100644
--- a/devel/tests/test_reporead.py
+++ b/devel/tests/test_reporead.py
@@ -41,7 +41,12 @@ class RepoReadTest(TransactionTestCase):
with self.assertRaises(CommandError) as e:
call_command('reporead', 'x86_64', 'nothing.db.tar.gz')
self.assertIn('Specified package database file does not exist.', str(e.exception))
-
+
+ def test_invalid_arch(self):
+ with self.assertRaises(CommandError) as e:
+ call_command('reporead', 'armv64', 'devel/fixtures/core.db.tar.gz')
+ self.assertEqual('Specified architecture armv64 is not currently known.', str(e.exception))
+
def test_read_packages(self):
with patch('devel.management.commands.reporead.logger') as logger:
call_command('reporead', 'x86_64', 'devel/fixtures/core.db.tar.gz')