-
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.
update to match changes in typedparser
- Loading branch information
1 parent
b9dbfed
commit 3e7a7ad
Showing
13 changed files
with
55 additions
and
16 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
docs/ | ||
/dist*/ | ||
|
||
*.bat | ||
*.h5 | ||
|
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
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
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,29 @@ | ||
from packg.iotools.misc import format_bytes_human_readable | ||
|
||
|
||
def test_format_bytes_small(): | ||
assert format_bytes_human_readable(0) == "0.000B" | ||
assert format_bytes_human_readable(100) == "100.000B" | ||
assert format_bytes_human_readable(512) == "512.000B" | ||
assert format_bytes_human_readable(-512) == "-512.000B" | ||
|
||
|
||
def test_format_bytes_kilobytes(): | ||
assert format_bytes_human_readable(1024) == "1.000KB" | ||
assert format_bytes_human_readable(2048) == "2.000KB" | ||
assert format_bytes_human_readable(1536) == "1.500KB" | ||
|
||
|
||
def test_format_bytes_megabytes(): | ||
assert format_bytes_human_readable(1048576) == "1.000MB" | ||
assert format_bytes_human_readable(1572864) == "1.500MB" | ||
|
||
|
||
def test_format_bytes_gigabytes(): | ||
assert format_bytes_human_readable(1073741824) == "1.000GB" | ||
assert format_bytes_human_readable(1610612736) == "1.500GB" | ||
|
||
|
||
def test_format_bytes_terabytes(): | ||
assert format_bytes_human_readable(1099511627776) == "1.000TB" | ||
assert format_bytes_human_readable(1649267441664) == "1.500TB" |
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 |
---|---|---|
|
@@ -33,4 +33,3 @@ def test_silence_stdlib_loggers(): | |
assert stream.getvalue() == "" | ||
|
||
print(f"Done") | ||
|
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 |
---|---|---|
|
@@ -31,5 +31,5 @@ def main(): | |
test_systemcall() | ||
|
||
|
||
if __name__ == '__main__': | ||
if __name__ == "__main__": | ||
main() |
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