diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2018-11-20 22:34:04 +0100 |
---|---|---|
committer | Jelle van der Waa <jelle@vdwaa.nl> | 2018-11-20 22:34:04 +0100 |
commit | 68e96cb4a1c255691948f0173fdb9126b019f292 (patch) | |
tree | 8d45332401ae3dbdecdfcad6804e97e66bec6d08 | |
parent | 87c63bd2c77e42b4ae0dde55ba10162c7be25fc6 (diff) | |
download | archweb-68e96cb4a1c255691948f0173fdb9126b019f292.tar.gz archweb-68e96cb4a1c255691948f0173fdb9126b019f292.zip |
devel: Add test for unsupported architecture
-rw-r--r-- | devel/tests/test_reporead.py | 7 |
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') |