gradio/test/test_context.py

18 lines
420 B
Python
Raw Normal View History

2022-03-25 04:32:04 +08:00
# import unittest
2022-03-24 00:21:30 +08:00
2022-03-25 04:32:04 +08:00
# from gradio.context import Context
2022-03-24 00:21:30 +08:00
2022-03-25 04:32:04 +08:00
# class TestContext(unittest.TestCase):
# def test_context(self):
# self.assertEqual(Context.id, 0)
# Context.id += 1
# self.assertEqual(Context.id, 1)
# Context.root_block = {}
# Context.root_block["1"] = 1
# self.assertEqual(Context.root_block, {"1": 1})
2022-03-24 00:21:30 +08:00
2022-03-25 04:32:04 +08:00
# if __name__ == "__main__":
# unittest.main()