Skip to content

removing orm.sqlite3 file causes multiple failures during testing #919

Open
@circulon

Description

@circulon

Describe the bug
A pre-populated sqlite3 db "orm.sqlite3" is included as part of this repo.
Removing this file causes many tests (50+) to fail.
Recreating the file with touch orm.sqlite3 or sqlite3 orm.sqlite3 ".databases" and then running the tests makes no difference

As this file is ONLY used in tests (via the "dev" connection) it should be initialised as part of the make init process.
Any minimum setup (migrations) for the tests should also be done during make init

To Reproduce
Steps to reproduce the behavior:

  1. clone this repo
  2. cd to its folder
  3. setup the python environment
  4. rm orm.sqlite3
  5. make init
  6. make test
  7. see many test failures

Expected behavior
make init should setup the test environment to a base level including initialisation of any requirements only used in testing.

Screenshots or code snippets
N/A

Desktop (please complete the following information):

  • OS: Mac OSX
  • Version: Monterey 12.7

What database are you using?

  • Type: sqlite3
  • Version NA
  • Masonite ORM: 2.x

Additional context
NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn existing feature is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions