piratar / wasa2il

Direct democracy system
https://x.piratar.is
Other
28 stars 16 forks source link

Commit broke /admin/ endpoint #235

Open viktorsmari opened 5 years ago

viktorsmari commented 5 years ago

Git bisect tells me that this commit 388fecf56f944e82ac8030721a7e14f561c16dff broke the /admin:

Commit message: CustomTermsAndConditionsRedirectMiddleware replaced with one from django-termsandconditions package, since they have now implemented the changes we needed.

Error:

UnicodeDecodeError at /admin/ 'ascii' codec can't decode byte 0xc3 in position 13: ordinal not in range(128)

I think we need to add simple tests, that simply check multiple endpoints like /login /admin /issues etc, just to ensure they are working and not erroring.

That way, we won't notice 'by accident' if something random broke.