Skip to content

Commit

Permalink
Even if the unit is 0 it is not allowed.
Browse files Browse the repository at this point in the history
  • Loading branch information
helly25 committed Sep 6, 2024
1 parent b29fc79 commit d65bf32
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mbo/app/flags_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,16 @@ def test_ActionDateTimeOrTimeDelta(self, test: FlagTestData):
),
input=["B"],
),
FlagTestData(
test="Unit only is invalid.",
expected="argument flag: value cannot be empty.",
expected_error=argparse.ArgumentError,
action=ActionArgs(
action=mbo.app.flags.ActionByteSize,
unit="0",
),
input=["0"],
),
FlagTestData(
test="Parse zero bytes.",
expected=[0, 0, 0, 0, 0],
Expand Down

0 comments on commit d65bf32

Please sign in to comment.