File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ def test_create(self):
62
62
'--dist-name=test_toolchain' ,
63
63
'--activity-class-name=abc.myapp.android.CustomPythonActivity' ,
64
64
'--service-class-name=xyz.myapp.android.CustomPythonService' ,
65
+ '--network-security-config=1' ,
66
+ '--uses-cleartext-traffic=1' ,
65
67
]
66
68
with patch_sys_argv (argv ), mock .patch (
67
69
'pythonforandroid.build.get_available_apis'
@@ -82,6 +84,8 @@ def test_create(self):
82
84
tchain = ToolchainCL ()
83
85
assert tchain .ctx .activity_class_name == 'abc.myapp.android.CustomPythonActivity'
84
86
assert tchain .ctx .service_class_name == 'xyz.myapp.android.CustomPythonService'
87
+ assert tchain .ctx .network_security_config == '1'
88
+ assert tchain .ctx .uses_cleartext_traffic == '1'
85
89
assert m_get_available_apis .call_args_list in [
86
90
[mock .call ('/tmp/android-sdk' )], # linux case
87
91
[mock .call ('/private/tmp/android-sdk' )] # macos case
You can’t perform that action at this time.
0 commit comments