Closed cmoussa1 closed 3 days ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 82.40%. Comparing base (
b0bd954
) to head (73a0ef9
). Report is 54 commits behind head on master.
Rebased to catch up here too. Setting MWP
Problem
The
--username
and--bank
arguments foradd-user
should be required arguments, but they are currently treated as optional arguments. This means that if someone calls add-user without passing--username
or--bank
, the correspondingadd_user()
function will try to run the function withNone
values. Requirements should be added for both of these arguments at the top level so that the call fails if either one of these is not present.This PR adds
required=True
to both the--username
and--bank
arguments inadd-user
. I've also added two tests tot1007-flux-account-users.t
to make sure errors are raised when either one of these is missing from theadd-user
call.Fixes #531