mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-05 15:12:10 +00:00
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:
parent
7d20329894
commit
b6ec87d17c
@ -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],
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user