Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make discovery to work with no IP addr and token, courtesy of M0ses (#…
…198) * Make discovery to work with no IP addr and token Obsoletes #194 * Fix linting * Add simple tests for click_common's validators, code courtesy of M0ses * make linter happy
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 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,10 @@ | ||
from miio.click_common import validate_token, validate_ip | ||
|
||
|
||
def test_validate_token_empty(): | ||
assert not validate_token(None, None, None) | ||
|
||
|
||
def test_validate_ip_empty(): | ||
assert validate_ip(None, None, None) is None | ||
|