Skip to content

Commit 5362d5a

Browse files
swissspidyclaude
andcommitted
db size: Accept megabytes in the human readable precision test
The database of a WordPress installation is a few hundred kilobytes today, but the scenario should not start failing the day it grows past a megabyte. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WA7GLFtiJMyt4ZwaDq194v
1 parent 88d2b18 commit 5362d5a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎features/db-size.feature‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,11 @@ Feature: Display database size
231231
Given a WP install
232232

233233
When I run `wp db size --human-readable`
234-
Then STDOUT should match /\d+\.\d+ KB/
234+
Then STDOUT should match /\d+\.\d+ (KB|MB)/
235235

236236
When I run `wp db size --human-readable --decimals=0`
237-
Then STDOUT should match /\d+ KB/
238-
And STDOUT should not match /\d+\.\d+ KB/
237+
Then STDOUT should match /\d+ (KB|MB)/
238+
And STDOUT should not match /\d+\.\d+ (KB|MB)/
239239

240240
@require-mysql-or-mariadb
241241
Scenario: Display database size in bytes with specific format for a WordPress install

0 commit comments

Comments
 (0)