FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnative/tests/test_smoke.py at main · pythonnative/pythonnative · GitHub
pythonnative
pythonnative
Repository navigation
Code
Issues
11
(11)
Pull requests
4
(4)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnative
/
tests
/
test_smoke.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
87 lines (78 loc) · 1.89 KB
Breadcrumbs
pythonnative
/
tests
/
test_smoke.py
Copy path
File metadata and controls
87 lines (78 loc) · 1.89 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
"""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"
,
"ErrorBoundary"
,
"FlatList"
,
"Image"
,
"Modal"
,
"Pressable"
,
"ProgressBar"
,
"Row"
,
"SafeAreaView"
,
"ScrollView"
,
"Slider"
,
"Spacer"
,
"Switch"
,
"Text"
,
"TextInput"
,
"View"
,
"WebView"
,
# Core
"Node"
,
"create_screen"
,
# Hooks
"batch_updates"
,
"component"
,
"create_context"
,
"use_callback"
,
"use_context"
,
"use_effect"
,
"use_focus_effect"
,
"use_memo"
,
"use_navigation"
,
"use_reducer"
,
"use_ref"
,
"use_route"
,
"use_screen_options"
,
"use_state"
,
# Navigation
"DrawerNavigator"
,
"Group"
,
"NavigationContainer"
,
"NavigationRef"
,
"Screen"
,
"ScreenOptions"
,
"StackNavigator"
,
"TabNavigator"
,
# Styling and theming
"StyleSheet"
,
"Theme"
,
"ThemeProvider"
,
"use_styles"
,
"use_theme"
,
# Stores
"Store"
,
"use_store"
,
}
assert
expected
.
issubset
(
set
(
pn
.
__all__
))
def
test_removed_names_stay_removed
()
->
None
:
removed
=
{
"create_drawer_navigator"
,
"create_navigation_ref"
,
"create_stack_navigator"
,
"create_tab_navigator"
,
"LinkingConfig"
,
"ThemeContext"
,
}
assert
removed
.
isdisjoint
(
pn
.
__all__
)
assert
not
any
(
hasattr
(
pn
,
name
)
for
name
in
removed
)
Back
|
FazBrowse Home
|
New Git URL