File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
services/invitations/tests/unit Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -47,17 +47,18 @@ def test_invite_user_and_check_invitation(
4747
4848 expected = {
4949 ** invitation_data .model_dump (exclude = {"product" }),
50+ "extra_credits_in_usd" : None , # Cannot be set from CLI
5051 "product" : environs ["INVITATIONS_DEFAULT_PRODUCT" ],
5152 }
5253
5354 # invitations-maker invite [email protected] --issuer=me --trial-account-days=3 54- trial_account = ""
55+ other_options = ""
5556 if invitation_data .trial_account_days :
56- trial_account = f"--trial-account-days={ invitation_data .trial_account_days } "
57+ other_options = f"--trial-account-days={ invitation_data .trial_account_days } "
5758
5859 result = cli_runner .invoke (
5960 main ,
60- f"invite { invitation_data .guest } --issuer={ invitation_data .issuer } { trial_account } " ,
61+ f"invite { invitation_data .guest } --issuer={ invitation_data .issuer } { other_options } " ,
6162 env = environs ,
6263 )
6364 assert result .exit_code == os .EX_OK , result .output
You can’t perform that action at this time.
0 commit comments