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

Added repo and engine code, as well as pytests #28

Merged
merged 5 commits into from
Jan 19, 2024

Conversation

jcadam14
Copy link
Contributor

Closes #27

Added the repos/submission_repo.py, engine/engine.py to provide model access functions as well as db session retrieval, respectively.

Added pytests to coincide with that code.

@jcadam14 jcadam14 self-assigned this Jan 18, 2024
@jcadam14 jcadam14 linked an issue Jan 18, 2024 that may be closed by this pull request
Copy link

github-actions bot commented Jan 18, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/entities/models
  dao.py
  dto.py
  src/entities/repos
  submission_repo.py 32, 66
Project Total  

This report was generated by python-coverage-comment-action

filing=submission.filing,
submitter=submission.submitter,
state=SubmissionState.SUBMISSION_UPLOADED,
validation_ruleset_version="v1",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should probably be null at this point, the validation process should be the one that updates it.

Updated the validation_ruleset_version on a submission nullable since it will be updated during the validation process and not when the submission is initially received.  This required updated the pytest associated with the submission_repo, as well as the SubmissionDAO and the alembic script for that table.
Copy link
Collaborator

@lchen-2101 lchen-2101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@lchen-2101 lchen-2101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh right, the FilingType was changed, tests are failing because of that.

@lchen-2101 lchen-2101 merged commit fb84d00 into main Jan 19, 2024
3 checks passed
@lchen-2101 lchen-2101 deleted the 27-add-db-engine-and-repo-code branch January 19, 2024 20:04
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.

Add db engine and repo code
2 participants