Skip to content

Add test coverage for masoniteorm make and seed console commands - #174

Merged
tmgbedu merged 3 commits into
experimetnsfrom
experimetns-pr155
Jul 14, 2026
Merged

Add test coverage for masoniteorm make and seed console commands#174
tmgbedu merged 3 commits into
experimetnsfrom
experimetns-pr155

Conversation

@tmgbedu

@tmgbedu tmgbedu commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Brings in the changes from PR #155 (test coverage for the masoniteorm make/seed console commands) onto the experimetns branch.

  • Adds test_db_seed_command.py and test_make_commands.py covering db:seed, db:make:migration, db:make:model, seed generation, and observer generation commands.
  • Adds a db:migrate:refresh case to test_migrate_commands.py.
  • Updates the mock patch target and directory-default assertions from masoniteorm.seeds / databases/seeds to masoniteorm.seeders / databases/seeders to match the seeds→seeders rename that landed on main after PR Add test coverage for masoniteorm make and seed console commands #155 was opened.

Testing

  • uv run pytest tests/masoniteorm/commands/ -v → 41 passed, 1 skipped

🤖 Generated with Claude Code

tmgbedu added 3 commits July 13, 2026 22:50
Cover the previously untested Cleo commands in
masoniteorm/commands: db:make:migration, db:make:model, seed
(make seeder), observer, db:seed and db:migrate:refresh.

Generator commands are exercised in an isolated temp working
directory and assert on the emitted files and CLI output.
db:seed is tested with a fake Seeder that records constructor
args and awaited methods, mocking database side effects while
verifying argument/option parsing and the handle path.
@tmgbedu
tmgbedu merged commit 7299c6a into experimetns Jul 14, 2026
5 checks passed
@codecov

codecov Bot commented Jul 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant