We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79edf35 commit bdd5037Copy full SHA for bdd5037
2 files changed
tests/test_cli.py
tests/test_main.py
@@ -1,9 +1,16 @@
1
import unittest
2
3
-from TryNiceGUI.main import add_one
+from nicegui import globals
4
+from TryNiceGUI.main import populate_ui
5
6
7
class TestMain(unittest.TestCase):
8
- def test_add_one(self):
9
- self.assertEqual(add_one(5), 6)
+ def test_client(self):
10
+ populate_ui()
11
+ client = globals.get_client()
12
+
13
+ self.assertEqual(
14
+ client.elements[3].tag,
15
+ 'div',
16
+ )
0 commit comments