Skip to content

Commit 52d4aff

Browse files
swissspidyCopilot
andauthored
Harden test involving sqlite db name (#316)
* Harden test involving sqlite db name The filename was changed in the latest sqlite plugin version. Accommodate for both * Update features/db-size.feature Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update features/db-size.feature Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 358e2a0 commit 52d4aff

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

features/db-size.feature

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -213,19 +213,12 @@ Feature: Display database size
213213
Given a WP install
214214

215215
When I run `wp db size --size_format=b --format=csv`
216-
Then STDOUT should contain:
217-
"""
218-
Name,Size
219-
.ht.sqlite,"
220-
"""
216+
Then STDOUT should match /Name,Size\n\.ht\.sqlite(\.php)?,"/
221217
222218
But STDOUT should not be a number
223219
224220
When I run `wp db size --size_format=b --format=json`
225-
Then STDOUT should contain:
226-
"""
227-
[{"Name":".ht.sqlite","Size":"
228-
"""
221+
Then STDOUT should match /^\[\{"Name":"\.ht\.sqlite(\.php)?","Size":"/
229222

230223
But STDOUT should not be a number
231224

0 commit comments

Comments
 (0)