6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-05 12:57:52 +00:00
tutor/tests/test_images.py
Régis Behmo b01f4d9c0e Better dev environment
The `dev` commands now rely on a different openedx-dev docker image.
This gives us multiple improvements:

- no more chown in base image
- faster chown in development
- mounted requirements volume in development
- fix static assets issues
- bundled ipdb/vim/... packages, which are convenient for development

Close #235
2019-10-24 20:03:36 +02:00

14 lines
450 B
Python

import unittest
from tutor import images
class ImagesTests(unittest.TestCase):
def test_get_tag(self):
config = {
"DOCKER_IMAGE_OPENEDX": "openedx",
"DOCKER_IMAGE_OPENEDX_DEV": "openedxdev",
"DOCKER_REGISTRY": "registry/",
}
self.assertEqual("registry/openedx", images.get_tag(config, "openedx"))
self.assertEqual("registry/openedxdev", images.get_tag(config, "openedx-dev"))