mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
18 lines
420 B
Python
18 lines
420 B
Python
# import unittest
|
|
|
|
# from gradio.context import Context
|
|
|
|
|
|
# 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})
|
|
|
|
|
|
# if __name__ == "__main__":
|
|
# unittest.main()
|