Skip to content

Commit

Permalink
fixes test
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Nov 8, 2023
1 parent 7ddad18 commit a5bf45f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions services/invitations/tests/unit/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,16 @@ def test_invite_user_and_check_invitation(
)
assert result.exit_code == os.EX_OK, result.output

invitation_url = result.stdout
print(invitation_url)
# NOTE: for some reason, when running from CLI the outputs get folded!
invitation_url = result.stdout.replace("\n", "")

# invitations-maker extrac https://foo#invitation=123
result = cli_runner.invoke(
main,
f"extract {invitation_url}",
f'extract "{invitation_url}"',
env=environs,
)
assert result.exit_code == os.EX_OK, result.output

assert expected == InvitationInputs.parse_raw(result.stdout).dict()


Expand Down

0 comments on commit a5bf45f

Please sign in to comment.