Skip to content

Commit

Permalink
Added CLI tests for users.tokens.create.
Browse files Browse the repository at this point in the history
  • Loading branch information
eriq-augustine committed Sep 5, 2024
1 parent 6005240 commit faa4214
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/cli/testdata/users/users_tokens_create_base.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"cli": "autograder.cli.users.tokens.create",
"arguments": [
]
}
---
Token ID: <TOKEN_ID>
Token Text: <TOKEN_CLEARTEXT>

Copy down the token text and keep it safe, this will be the only time it is ever shown.
11 changes: 11 additions & 0 deletions tests/cli/testdata/users/users_tokens_create_name.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"cli": "autograder.cli.users.tokens.create",
"arguments": [
"--name", "foo"
]
}
---
Token ID: <TOKEN_ID>
Token Text: <TOKEN_CLEARTEXT>

Copy down the token text and keep it safe, this will be the only time it is ever shown.

0 comments on commit faa4214

Please sign in to comment.