fix(test): correct project list scenario that expected abort on empty db #90

Merged
brent.edwards merged 3 commits from fix/project-list-test into master 2026-02-17 16:04:05 +00:00
Member
No description provided.
hamza.khyari added 1 commit 2026-02-17 13:19:30 +00:00
fix(test): correct project list scenario that expected abort on empty db
CI / lint (pull_request) Failing after 14s
CI / typecheck (pull_request) Successful in 30s
CI / coverage (pull_request) Has been skipped
CI / security (pull_request) Successful in 28s
CI / quality (pull_request) Successful in 17s
CI / integration_tests (pull_request) Successful in 5m14s
CI / build (pull_request) Successful in 16s
CI / unit_tests (pull_request) Failing after 17m36s
CI / docker (pull_request) Has been skipped
4d63b5af7e
The 'Test project list command with no database' scenario asserted the
command should abort, but the DI container creates a default SQLite DB
so list_projects() returns an empty list and exits 0 with 'No projects
found'.  Update the scenario to match the actual (correct) behavior.
hamza.khyari self-assigned this 2026-02-17 13:19:48 +00:00
hamza.khyari added 1 commit 2026-02-17 14:04:31 +00:00
style: shorten docstring markdown tables to satisfy E501 (88 cols)
CI / lint (pull_request) Successful in 21s
CI / typecheck (pull_request) Successful in 42s
CI / security (pull_request) Successful in 25s
CI / quality (pull_request) Successful in 24s
CI / build (pull_request) Successful in 15s
CI / coverage (pull_request) Failing after 8m19s
CI / integration_tests (pull_request) Successful in 9m21s
CI / unit_tests (pull_request) Failing after 21m4s
CI / docker (pull_request) Has been skipped
4ba714c389
hamza.khyari added 1 commit 2026-02-17 14:40:26 +00:00
fix(test): add temp directory and DB bootstrap to project list scenario
CI / lint (pull_request) Successful in 15s
CI / quality (pull_request) Successful in 22s
CI / security (pull_request) Successful in 26s
CI / typecheck (pull_request) Successful in 29s
CI / build (pull_request) Successful in 14s
CI / coverage (pull_request) Failing after 8m40s
CI / integration_tests (pull_request) Successful in 10m0s
CI / unit_tests (pull_request) Successful in 22m57s
CI / docker (pull_request) Successful in 40s
46f697bd95
The 'Test project list command with no projects' scenario was missing a
Given step to set up a writable working directory. Without it, the
container fell back to CWD/.cleveragents/db.sqlite which could not be
opened (directory did not exist), causing sqlite3.OperationalError.

- Add 'Given I have a temporary working directory' to the scenario
- Bootstrap the SQLite schema in the When step so the ns_projects table
  exists for the empty-list query
hamza.khyari requested review from brent.edwards 2026-02-17 15:15:10 +00:00
hamza.khyari requested review from freemo 2026-02-17 15:15:20 +00:00
hamza.khyari removed review request for freemo 2026-02-17 15:15:25 +00:00
brent.edwards merged commit 1f8760f94a into master 2026-02-17 16:04:05 +00:00
brent.edwards deleted branch fix/project-list-test 2026-02-17 16:04:06 +00:00
freemo added this to the v3.0.0 milestone 2026-02-23 17:25:41 +00:00
freemo added the
State
Completed
label 2026-03-04 00:59:52 +00:00
Sign in to join this conversation.
No Reviewers
No Label
State
Completed
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cleveragents/cleveragents-core#90