diff options
| author | django-bot <ops@djangoproject.com> | 2022-02-08 12:09:55 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-08 12:15:38 +0100 |
| commit | 6a682b38e75d4c975b4c4493565a59f1bc14397c (patch) | |
| tree | 0bd9cda550bea26238656d9f120d769e8b41bb9e /tests/dbshell/tests.py | |
| parent | e73ce08888e6f34d3f050377cfd2fbb733be94a9 (diff) | |
[4.0.x] Refs #33476 -- Reformatted code with Black.
Backport of 9c19aff7c7561e3a82978a272ecdaad40dda5c00 from main.
Diffstat (limited to 'tests/dbshell/tests.py')
| -rw-r--r-- | tests/dbshell/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/dbshell/tests.py b/tests/dbshell/tests.py index 3d4ac2fce6..8dd3d22c98 100644 --- a/tests/dbshell/tests.py +++ b/tests/dbshell/tests.py @@ -9,9 +9,9 @@ from django.test import SimpleTestCase class DbshellCommandTestCase(SimpleTestCase): def test_command_missing(self): msg = ( - 'You appear not to have the %r program installed or on your path.' + "You appear not to have the %r program installed or on your path." % connection.client.executable_name ) with self.assertRaisesMessage(CommandError, msg): - with mock.patch('subprocess.run', side_effect=FileNotFoundError): - call_command('dbshell') + with mock.patch("subprocess.run", side_effect=FileNotFoundError): + call_command("dbshell") |
