浏览代码

#791 add pytest

Falko Schindler 2 年之前
父节点
当前提交
cbd4a53031
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      tests/test_label.py

+ 7 - 0
tests/test_label.py

@@ -8,3 +8,10 @@ def test_hello_world(screen: Screen):
 
 
     screen.open('/')
     screen.open('/')
     screen.should_contain('Hello, world')
     screen.should_contain('Hello, world')
+
+
+def test_text_0(screen: Screen):
+    ui.label(0)
+
+    screen.open('/')
+    screen.should_contain('0')