mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-16 18:15:09 +00:00
6a68c4cc20
This commit introduces many changes: - a fully functional minio plugin for local installation - an almost-functional native k8s deployment - a new way to process configuration, better suited to plugins There are still many things to do: - get rid of all the TODOs - get a fully functional minio plugin for k8s - add documentation for pluginso - ...
15 lines
420 B
Python
15 lines
420 B
Python
import unittest
|
|
import unittest.mock
|
|
|
|
from tutor import config as tutor_config
|
|
from tutor import scripts
|
|
|
|
|
|
class ScriptsTests(unittest.TestCase):
|
|
def test_is_activated(self):
|
|
config = {"ACTIVATE_SERVICE1": True, "ACTIVATE_SERVICE2": False}
|
|
runner = scripts.BaseRunner("/tmp", config)
|
|
|
|
self.assertTrue(runner.is_activated("service1"))
|
|
self.assertFalse(runner.is_activated("service2"))
|