CoolFace
Apppublic

shaibu01/Titan-Engine

sourceHugging Faceupdated 2d agoView on Hugging Face
0likes
test_space_supervisor.py19 linesDownload Raw Back to root
1import os2import unittest3from unittest.mock import patch4 5import space_supervisor6 7 8class SpaceSupervisorTests(unittest.TestCase):9    def test_child_environment_disables_dashboard_duplicate_core(self):10        with patch.dict(os.environ, {"TITAN_ENABLE_BACKGROUND_CORE": "1"}, clear=False):11            env = space_supervisor.child_environment()12        self.assertEqual(env["TITAN_CORE_SUPERVISED"], "1")13        self.assertEqual(env["TITAN_ENABLE_BACKGROUND_CORE"], "0")14        self.assertEqual(env["PYTHONUNBUFFERED"], "1")15 16 17if __name__ == "__main__":18    unittest.main()19