Closed stevbark closed 2 months ago
Issue described here: https://github.com/hackforla/HomeUniteUs/issues/578
Hey @stevbark I'm taking a look into your PR and was trying to figure out a way to test the schemas. How were you approaching testing?
Hey @stevbark,
Thanks for adding this! I agree with @JpadillaCoding, can you write a couple of test cases that:
- demonstrate using marshmallow_sqlalchemy to serialize a Host and HousingProgramServiceProvider database object to JSON
- demonstrate using marshmallow_sqlalchemy to deserialize JSON into a Host and HousingProgramServiceProvider?
It'll be easier to write these types of tests once my PR is merged, but the current pytest proj has most or all of what you need now.
What file should the test be in? In the controller or the Utils test file?
Resolved issues. all tests passed before. Pushed the gitignore update and the tests started failing. not sure why.
@stevbark yeah that's weird. I re-ran the tests and they passed.
@Joshua-Douglas can you confirm that the changes you requested were made? If so, please approve and merge when you get a change.
Closes #replace_this_text_with_the_issue_number
What changes did you make?
Rationale behind the changes?
Testing done for these changes
What did you learn or can share that is new?(optional)
Screenshots of Proposed Changes Of The Website (if any, please do not screen shot code changes)
Visuals before changes are applied
![image](Paste_Your_Image_Link_Here_After_Attaching_Files)Visuals after changes are applied
![image](Paste_Your_Image_Link_Here_After_Attaching_Files)