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

42 add get submission endpoint #44

Merged
merged 5 commits into from
Feb 2, 2024
Merged

Conversation

jcadam14
Copy link
Contributor

Closes #42

Part of this pulled in changes from #41 for the api conftest and the set_db function for Routers

Also fixed the test_get_filing function which was actually testing filing periods, not filings.

@jcadam14 jcadam14 linked an issue Jan 29, 2024 that may be closed by this pull request
@jcadam14 jcadam14 self-assigned this Jan 29, 2024
Was in my poetry.lock so running pytests was good locally
Copy link

github-actions bot commented Jan 29, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/entities/repos
  submission_repo.py
  src/routers
  filing.py
Project Total  

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

validation_ruleset_version="v1",
)
]
return mock
Copy link
Collaborator

Choose a reason for hiding this comment

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

why a return here? the actual test code isn't being reached, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct, that was a copy/paste error. Originally I had it as a fixture but then moved the get_submissions mock to inside the actual test function (is there a preference for one over the other?). Removed that and revealed the second assert_called_once failed so switched those to just assert_called_with

@jcadam14 jcadam14 requested a review from lchen-2101 February 2, 2024 20:15
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

@lchen-2101 lchen-2101 merged commit 644a803 into main Feb 2, 2024
3 checks passed
@lchen-2101 lchen-2101 deleted the 42-add-get-submission-endpoint branch February 2, 2024 20:56
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 GET submission endpoint
2 participants