Skip to content

Commit

Permalink
Update examples for queries length assert #763
Browse files Browse the repository at this point in the history
Signed-off-by: Miklos Bagi <mb_mbgithub@mbag.at>
  • Loading branch information
miklosbagi committed Jan 26, 2024
1 parent 8e28aed commit edaab6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions executors/sql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ testcases:
- "SELECT * FROM employee;"
- "SELECT * FROM person;"
assertions:
- result.queries.__len__ ShouldEqual 2
- result.queries.__Len__ ShouldEqual 2
- result.queries.queries0.rows.rows0.name ShouldEqual Jack
- result.queries.queries1.rows.rows0.age ShouldEqual 21
Expand All @@ -63,7 +63,7 @@ testcases:
dsn: user:password@(localhost:3306)/venom
file: ./test.sql
assertions:
- result.queries.__len__ ShouldEqual 1
- result.queries ShouldHaveLength 1
```

*note: in the example above, the results of each command is stored in the results array
Expand Down

0 comments on commit edaab6b

Please sign in to comment.