Merge pull request #21622 from edx/BOM-455

BOM-455
This commit is contained in:
Ayub
2019-09-12 12:33:08 +05:00
committed by GitHub

View File

@@ -29,7 +29,10 @@ class TestArgParsingCourseExportOlx(unittest.TestCase):
"""
Test export command with no arguments
"""
errstring = "Error: too few arguments"
if six.PY2:
errstring = "Error: too few arguments"
else:
errstring = "Error: the following arguments are required: course_id"
with self.assertRaisesRegexp(CommandError, errstring):
call_command('export_olx')