-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a41fdd
commit b5d19ff
Showing
2 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Feature: Query with CLI | ||
|
||
The Armaria CLI can be used to query bookmarks and folders. | ||
|
||
@cli @query | ||
Scenario: Can query bookmarks/folders | ||
Given the DB already has the following entries: | ||
| id | parent_id | is_folder | name | url | description | tags | | ||
| {parent_1_id} | NULL | true | blogs | NULL | NULL | | | ||
| {id} | NULL | false | https://jho.pe | https://jho.pe | NULL | | | ||
When I run it with the following args: | ||
""" | ||
query blog | ||
""" | ||
Then the folllowing books are returned: | ||
| id | parent_id | is_folder | name | url | description | tags | | ||
| [parent_1_id] | NULL | true | blogs | NULL | NULL | | | ||
|
||
@cli @query | ||
Scenario: Can limit query results | ||
Given the DB already has the following entries: | ||
| id | parent_id | is_folder | name | url | description | tags | | ||
| {parent_1_id} | NULL | true | blogs | NULL | NULL | | | ||
| {parent_2_id} | NULL | true | blogs | NULL | NULL | | | ||
When I run it with the following args: | ||
""" | ||
query blog --first 1 | ||
""" | ||
Then the folllowing books are returned: | ||
| id | parent_id | is_folder | name | url | description | tags | | ||
| [parent_1_id] | NULL | true | blogs | NULL | NULL | | |