summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorFrank Vanderham <twelve.eighty@gmail.com>2018-04-23 20:54:45 -0600
committerJelle van der Waa <jelle@vdwaa.nl>2019-01-21 21:19:58 +0100
commitf972220bbc14e019942267642c7d3a093e9e1746 (patch)
treec8421af6550016d20ec0f923523e2f885812da39 /main
parent708442da33d2ba4d87dd3958e4c455becb2c5990 (diff)
downloadarchweb-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.py2
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: