mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-12-12 22:27:47 +00:00
0a670d7ead
Annotations were generated with pyannotate: https://github.com/dropbox/pyannotate We are running in strict mode, which is awesome! This affects a large part of the code base, which might be an issue for people running a fork of Tutor. Nonetheless, the behavior should not be affected. If anything, this process has helped find and resolve a few type-related bugs. Thus, this is not considered as a breaking change.
13 lines
432 B
Python
13 lines
432 B
Python
import unittest
|
|
from tutor import images
|
|
|
|
|
|
class ImagesTests(unittest.TestCase):
|
|
def test_get_tag(self) -> None:
|
|
config = {
|
|
"DOCKER_IMAGE_OPENEDX": "registry/openedx",
|
|
"DOCKER_IMAGE_OPENEDX_DEV": "registry/openedxdev",
|
|
}
|
|
self.assertEqual("registry/openedx", images.get_tag(config, "openedx"))
|
|
self.assertEqual("registry/openedxdev", images.get_tag(config, "openedx-dev"))
|