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

Implementing tests for code #15

Open
2 of 4 tasks
Tracked by #3
schlich opened this issue Jan 12, 2024 · 4 comments
Open
2 of 4 tasks
Tracked by #3

Implementing tests for code #15

schlich opened this issue Jan 12, 2024 · 4 comments
Assignees

Comments

@schlich
Copy link

schlich commented Jan 12, 2024

Goal: Even though we want to do as little as necessary to get dues out, we want to make sure we are doing so with quality. This ticket is about testing.

  • Determine what models + Django fixtures would cover requirements for MVP.
  • Examine examples from contexts.json and see if we can split out any logical units for MVP
  • Write tests using above fixtures
  • Create a README/markdown with test case descriptions (look into automated solutions)
@schlich schlich mentioned this issue Jan 12, 2024
9 tasks
@ryanvarick ryanvarick changed the title Implementing the tests and code for the above Implementing tests for code Jan 17, 2024
@icemoon4 icemoon4 self-assigned this Jan 22, 2024
@icemoon4
Copy link

icemoon4 commented Apr 1, 2024

Models for MVP (based on the existing templates we have already):

  • Auth User (Django base model)
  • Core User (AK model that inherits from Auth User)
  • Core Candidate
  • Core Product
  • Core Action
  • Core Page
  • Core List
  • Core Hosting Platform
  • Core Order
  • Core Order Recurring
  • Core Order User Detail
  • Event
  • Events Campaign
  • Cms Templateset
  • Cms Survey Question
  • Cms Survey Form

There may be more that need to be added to this list, so far this is just relevant to the links that appear on the homepage.

@icemoon4
Copy link

icemoon4 commented Apr 1, 2024

Converted some of the context sample data into serializers that could be loaded in the views. Also created fixtures with sample data for the models listed above.

@icemoon4
Copy link

icemoon4 commented Apr 1, 2024

Wrote one basic test for the recurring update page (checks that the expected $ amount appears on the page). May need more context on tests we want to implement.

@erikdstock
Copy link

Amazing, great, thank you!

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

When branches are created from issues, their pull requests are automatically linked.

3 participants