-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
848289a
commit b3567b3
Showing
5 changed files
with
334 additions
and
28 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
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,2 @@ | ||
from .network import * | ||
from .wlan import * |
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,10 @@ | ||
from microtest import spy | ||
|
||
class MockNetwork: | ||
def __init__(self): | ||
self.STAT_CONNECTING = 1 | ||
self.STAT_CONNECT_FAIL = -1 | ||
self.STAT_NO_AP_FOUND = -2 | ||
self.STAT_WRONG_PASSWORD = -3 | ||
self.STA_IF = 0 | ||
self.WLAN = spy() |
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,11 @@ | ||
from microtest import spy | ||
|
||
class MockWlan: | ||
def __init__(self): | ||
self.connect = spy() | ||
self.disconnect = spy() | ||
self.status = spy() | ||
self.active = spy() | ||
self.isconnected = spy() | ||
self.config = spy() | ||
self.ifconfig = spy() |
Oops, something went wrong.