-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
118 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../python3-alpha/python-scripts/pip_console.py3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
r30 | ||
r31 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../python-build/python-scripts/take_cacert_pem.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
from __future__ import print_function, unicode_literals | ||
import sys | ||
|
||
|
||
# tests for python modification for android {{{1 | ||
def test_032s_wificonnect(): # issue sl4a #32 {{{1 | ||
method = "WPA2" | ||
if method == "no-security": | ||
cfg = dict( | ||
SSID="invalidwifi", | ||
# below parameters are not used in example of my expalation site. | ||
# BSSID=, | ||
# hiddenSSID=False, | ||
# priority=, | ||
# apBand=, | ||
) | ||
elif method == "WEP": | ||
cfg = dict( | ||
SSID="invalidwifi", | ||
wepKeys=["key0"], | ||
wepTxKeyIndex=0, | ||
) | ||
else: # elif method == "WPA2": | ||
cfg = dict( | ||
SSID="invalidwifi", | ||
password="testtesttest", | ||
# or you can use: presharedkey="0123456789ABCDEF...64B", | ||
# be careful SL4A can't allow 64byte key. | ||
) | ||
droid.wifiConnect(cfg) | ||
return True | ||
|
||
|
||
if __name__ == '__main__': # {{{1 | ||
try: | ||
import android | ||
except: | ||
import os | ||
sys.path.insert(0, os.path.dirname(__file__)) | ||
import android_mock as android # for PC debugging | ||
droid = android.Android() | ||
|
||
test_032s_wificonnect() | ||
|
||
# vi: ft=python:et:ts=4:fdm=marker |