diff options
author | Frank Vanderham <twelve.eighty@gmail.com> | 2018-04-23 20:54:45 -0600 |
---|---|---|
committer | Jelle van der Waa <jelle@vdwaa.nl> | 2019-01-21 21:19:58 +0100 |
commit | f972220bbc14e019942267642c7d3a093e9e1746 (patch) | |
tree | c8421af6550016d20ec0f923523e2f885812da39 /main | |
parent | 708442da33d2ba4d87dd3958e4c455becb2c5990 (diff) | |
download | archweb-f972220bbc14e019942267642c7d3a093e9e1746.tar.gz archweb-f972220bbc14e019942267642c7d3a093e9e1746.zip |
Fix false positive in test due to changed error
Under Python 3, the error message that is expected to be returned has
changed. This fixes the 'expected' error so that the test succeeds and
fails as required.
Diffstat (limited to 'main')
-rw-r--r-- | main/tests/test_donor_import.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/tests/test_donor_import.py b/main/tests/test_donor_import.py index 21a1a8eb..f31ae099 100644 --- a/main/tests/test_donor_import.py +++ b/main/tests/test_donor_import.py @@ -44,7 +44,7 @@ class DonorImportTest(TransactionTestCase): def test_invalid_args(self): with self.assertRaises(CommandError) as e: call_command('donor_import') - self.assertIn('Error: too few arguments', str(e.exception)) + self.assertIn('Error: the following arguments are required', str(e.exception)) def test_invalid_path(self): with self.assertRaises(CommandError) as e: |