6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-12 14:17:46 +00:00
tutor/tests/test_images.py

14 lines
450 B
Python
Raw Normal View History

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"))