Skip to content

Conversation

@jbriones1
Copy link
Contributor

depends on #126

  • Added basic integration tests for the Nominees endpoints
  • TODO: Once the checks for election officers is completed, create the rest of the tests for election officers

* refactored how the election officers are looked up
* changed the Nominee put back to a patch
* made election tests work with the new testing setup
@jbriones1 jbriones1 requested a review from p-north January 2, 2026 07:01
@jbriones1 jbriones1 changed the title Feature: Nominee tests Test: Nominee endpoint Jan 2, 2026
@jbriones1 jbriones1 marked this pull request as ready for review January 3, 2026 21:25
query = query.where(BlogPosts.title == title)

# should return the one entry with an unique title
post = await db_session.scalar(query)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit pick: might wanna check if post is none

Comment on lines +54 to +55
query = query.where(BlogPosts.post_tags in tags).where(BlogPosts.last_edited).order_by(BlogPosts.last_edited.desc())
# .all() should return a list of all the posts
Copy link
Contributor

Choose a reason for hiding this comment

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

slight syntax issue for sqlalchemy. BlogPosts.post_tags in tags is invalid syntax

Correction: query = query.where(BlogPosts.post_tags.contains(tags)).order_by(BlogPosts.last_edited.desc())

detail="candidate is already registered for that position",
)

registration.update_from_params(body)
Copy link
Contributor

Choose a reason for hiding this comment

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

might want to await this

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.

3 participants