-
Notifications
You must be signed in to change notification settings - Fork 15
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
27 changed files
with
463 additions
and
352 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
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 |
---|---|---|
|
@@ -26,6 +26,7 @@ var/ | |
*.egg | ||
*dist/ | ||
pip-wheel-metadata/ | ||
.python-version | ||
|
||
# Installer logs | ||
pip-log.txt | ||
|
This file was deleted.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from time import sleep | ||
|
||
|
||
def assert_recursive_contains(first, second): | ||
if isinstance(first, dict) and isinstance(second, dict): | ||
assert first.keys() <= second.keys() | ||
|
||
for k, v in first.items(): | ||
assert_recursive_contains(v, second[k]) | ||
elif isinstance(first, (list, set, tuple)) and isinstance(second, (list, set, tuple)): | ||
assert len(first) <= len(second) | ||
|
||
for i, _ in enumerate(first): | ||
assert_recursive_contains(first[i], second[i]) | ||
else: | ||
assert first == second | ||
|
||
|
||
def assert_read_from_file(file_path, value, max_sleep=10): | ||
read_value = None | ||
i = 0 | ||
while not read_value and i < max_sleep: | ||
sleep(i) | ||
with open(file_path) as f: | ||
read_value = f.read() | ||
i += 0.1 | ||
|
||
assert read_value == value |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.