Skip to content

Commit 79175a1

Browse files
committed
added --network-security-config, --uses-cleartext-traffic, --activity-class-name and --service-class-name input parameters
1 parent fe198e3 commit 79175a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_toolchain.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)