ubccr / coldfront

HPC Resource Allocation System
https://coldfront.readthedocs.io
GNU General Public License v3.0
96 stars 76 forks source link

Add factoryboy Project and Allocation unit tests #546

Closed claire-peters closed 11 months ago

claire-peters commented 12 months ago

This PR includes:

There are also a couple of minor changes made to the Allocation views:

Looking forward to your comments!

claire-peters commented 11 months ago

Thanks for catching the issues there - the parts for #541 should be in a separate PR, and I'm happy to put off any formatting changes to the user tests module until it can be paired with a more substantive contribution to said module. Just pushed my changes, let me know what you think.

claire-peters commented 11 months ago

Whup, thanks for catching that. Added the changes to make the tests work - specifically, I made it so a success message would appear on the following page after an allocation request has been successfully submitted and I removed the line login_url = '/' from AllocationChangeListView. If there are any issues with this, just let me know.