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):
6262 '--dist-name=test_toolchain' ,
6363 '--activity-class-name=abc.myapp.android.CustomPythonActivity' ,
6464 '--service-class-name=xyz.myapp.android.CustomPythonService' ,
65+ '--network-security-config=1' ,
66+ '--uses-cleartext-traffic=1' ,
6567 ]
6668 with patch_sys_argv (argv ), mock .patch (
6769 'pythonforandroid.build.get_available_apis'
@@ -82,6 +84,8 @@ def test_create(self):
8284 tchain = ToolchainCL ()
8385 assert tchain .ctx .activity_class_name == 'abc.myapp.android.CustomPythonActivity'
8486 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'
8589 assert m_get_available_apis .call_args_list in [
8690 [mock .call ('/tmp/android-sdk' )], # linux case
8791 [mock .call ('/private/tmp/android-sdk' )] # macos case
You can’t perform that action at this time.
0 commit comments