6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-12 06:07:56 +00:00

Fix images.get_tag unit test

This commit is contained in:
Régis Behmo 2020-07-21 09:28:21 +02:00
parent bbd92223ee
commit 5f81aae616

View File

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