docs(agent-task view): explain test case rationale
Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
parent
f8ff42a3f1
commit
ec8f412cca
1 changed files with 3 additions and 0 deletions
|
|
@ -191,6 +191,7 @@ func Test_viewRun(t *testing.T) {
|
|||
`),
|
||||
},
|
||||
{
|
||||
// The user data should always be there, but we need to cover the code path.
|
||||
name: "with session id, success, without user data (tty)",
|
||||
tty: true,
|
||||
opts: ViewOptions{
|
||||
|
|
@ -224,6 +225,7 @@ func Test_viewRun(t *testing.T) {
|
|||
`),
|
||||
},
|
||||
{
|
||||
// This can happen when the session is just created and a PR is not yet available for it.
|
||||
name: "with session id, success, without pr data (tty)",
|
||||
tty: true,
|
||||
opts: ViewOptions{
|
||||
|
|
@ -249,6 +251,7 @@ func Test_viewRun(t *testing.T) {
|
|||
`),
|
||||
},
|
||||
{
|
||||
// The user data should always be there, but we need to cover the code path.
|
||||
name: "with session id, success, without pr nor user data (tty)",
|
||||
tty: true,
|
||||
opts: ViewOptions{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue