-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_smoke.py
More file actions
53 lines (46 loc) · 1.07 KB
/
test_smoke.py
File metadata and controls
53 lines (46 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
"""Verify the package is importable and exports the public API."""
import pythonnative as pn
from pythonnative.element import Element
def test_package_version() -> None:
assert pn.__version__
def test_element_class_exported() -> None:
assert pn.Element is Element
def test_public_api_names() -> None:
expected = {
"ActivityIndicator",
"Button",
"Column",
"Element",
"FlatList",
"Image",
"Modal",
"Pressable",
"ProgressBar",
"Row",
"SafeAreaView",
"ScrollView",
"Slider",
"Spacer",
"Switch",
"Text",
"TextInput",
"View",
"WebView",
# Core
"create_page",
# Hooks
"component",
"create_context",
"use_callback",
"use_context",
"use_effect",
"use_memo",
"use_navigation",
"use_ref",
"use_state",
"Provider",
# Styling
"StyleSheet",
"ThemeContext",
}
assert expected.issubset(set(pn.__all__))