fix: copyfrom unit test on python 3.7

`call_args.args` was only introduced in Python 3.8. This is breaking CI.
This commit is contained in:
Régis Behmo 2022-04-24 10:39:51 +02:00
parent 7d20329894
commit b6ec87d17c
1 changed files with 4 additions and 4 deletions

View File

@ -38,11 +38,11 @@ class LocalTests(unittest.TestCase, TestCommandMixin):
self.assertEqual(0, result.exit_code)
self.assertIn(
f"--volume={directory}:/tmp/mount",
mock_docker_compose.call_args.args,
mock_docker_compose.call_args[0],
)
self.assertIn(
"cp --recursive --preserve /openedx/venv /tmp/mount",
mock_docker_compose.call_args.args,
mock_docker_compose.call_args[0],
)
# Copy to non-existing directory
@ -60,9 +60,9 @@ class LocalTests(unittest.TestCase, TestCommandMixin):
self.assertEqual(0, result.exit_code)
self.assertIn(
f"--volume={directory}:/tmp/mount",
mock_docker_compose.call_args.args,
mock_docker_compose.call_args[0],
)
self.assertIn(
"cp --recursive --preserve /openedx/venv /tmp/mount/venv2",
mock_docker_compose.call_args.args,
mock_docker_compose.call_args[0],
)