mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-18 00:44:59 +00:00
Cast numeric string in readable_to_bytes
This commit is contained in:
@@ -76,8 +76,7 @@ class TestReadableToBytes:
|
||||
readable_to_bytes("ABC KB")
|
||||
|
||||
def test_missing_unit(self):
|
||||
with pytest.raises(ValueError, match="Invalid input for size_str"):
|
||||
readable_to_bytes("100")
|
||||
assert readable_to_bytes("100") == 100
|
||||
|
||||
|
||||
class TestSanitizeExcept:
|
||||
|
||||
Reference in New Issue
Block a user