summaryrefslogtreecommitdiff
path: root/tests/dbshell
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2019-08-23 21:25:21 +0200
committerGitHub <noreply@github.com>2019-08-23 21:25:21 +0200
commit92c72b68b759d0b12d90e029f03a98c6a8f661fe (patch)
tree9ee90659e854ef52b39e326cdf550e5c62113135 /tests/dbshell
parent06372a8d274d5a03f72078180ea355b9c7434fb1 (diff)
Fixed broken OracleDbshellTests tests after 9386586f31b8a0bccf59a1bff647cd829d4e79aa.
Diffstat (limited to 'tests/dbshell')
-rw-r--r--tests/dbshell/test_oracle.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/dbshell/test_oracle.py b/tests/dbshell/test_oracle.py
index cfaf106d68..431134e3ac 100644
--- a/tests/dbshell/test_oracle.py
+++ b/tests/dbshell/test_oracle.py
@@ -10,7 +10,7 @@ from django.test import SimpleTestCase
class OracleDbshellTests(SimpleTestCase):
def _run_dbshell(self, rlwrap=False):
"""Run runshell command and capture its arguments."""
- def _mock_subprocess_run(*args):
+ def _mock_subprocess_run(*args, **kwargs):
self.subprocess_args = list(*args)
return CompletedProcess(self.subprocess_args, 0)
@@ -24,11 +24,11 @@ class OracleDbshellTests(SimpleTestCase):
def test_without_rlwrap(self):
self.assertEqual(
self._run_dbshell(rlwrap=False),
- ('sqlplus', '-L', connection._connect_string()),
+ ['sqlplus', '-L', connection._connect_string()],
)
def test_with_rlwrap(self):
self.assertEqual(
self._run_dbshell(rlwrap=True),
- ('/usr/bin/rlwrap', 'sqlplus', '-L', connection._connect_string()),
+ ['/usr/bin/rlwrap', 'sqlplus', '-L', connection._connect_string()],
)