Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 919 #922

Draft
wants to merge 11 commits into
base: 2.0
Choose a base branch
from
Draft

Fix 919 #922

wants to merge 11 commits into from

Conversation

circulon
Copy link
Contributor

@circulon circulon commented Feb 22, 2025

Fixes #919

In doing so It made it obvious that the pre-populated orm.sqlite3 file was hiding several issues

This PR is a WIP as a litmus test for fixes hilighted by this until the issues are resolved.

Included in this PR

  • encapsulated creating / populating tables per test
  • cleaned up the sqlite query builder tests
    • most tests now check the query built and the data
    • moved the sql queries back into the tests themselves for readability
    • use a separate table users_query for easier debugging

TODO:

  • examine all TODO items and make separate PR for these
  • examin disabled code points (some in transactions, etc) for issues encountered during testing

@josephmancuso Please have a look at this as the test failures do hilight some issues that can be easily addressed.

Includes
- removed unused imports
- sorted imports
- black tidy
- Encapsulated table creation and population within each TestCase Class.  This removes any bleed over from other Test Classes run previously
- Updated and fixed tests
- heneral cleanup of unused vars and other tidy
Initial rework
- all tests now chaeck against a standard set of data that will not change between tests
- fixed some tests did not actually do anything (placeholders)
- moved the sql query check back into the tests for readability.
@circulon circulon changed the title Fix/919 Fix 919 Feb 22, 2025
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.

removing orm.sqlite3 file causes multiple failures during testing
1 participant