aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/staff/tests (follow)
Commit message (Collapse)AuthorAgeLines
* Switch to ruff for lintingGravatar Johannes Christ2023-05-10-1/+1
|
* Add tests for new embed colour typesGravatar Chris Lovering2022-04-21-1/+11
|
* Move subdomains to query paths.Gravatar Johannes Christ2021-06-08-13/+9
| | | | | | | | | | | | | | In more detail: - Use Django URL namespaces (e.g. `api:bot:infractions`) instead of `django_hosts` host argument. - Update the hosts file setup documentation to remove subdomain entries. - Update the hosts file setup documentation to mention that the entry of `pythondiscord.local` is not required and mainly for convenience. - Rename the `APISubdomainTestCase` to the more fitting `AuthenticatedAPITestCase`, as authentication is all that is left that the class is doing. - Drop dependency to `django_hosts`.
* Merge branch 'master' into admin-api-pages-improvementsGravatar scragly2020-09-18-7/+56
|\ | | | | | | | | # Conflicts: # pydis_site/apps/api/admin.py
| * Alter staff tests to make use of new user roles syntaxGravatar Joseph Banks2020-06-02-1/+1
| |
| * No longer accept or track avatar_hash.Gravatar Leon Sandøy2020-05-27-1/+0
| | | | | | | | | | | | This should completely remove avatar_hash from the site - both in our tests, in the model itself, and from the database (as a result of the migration).
| * Merge branch 'master' into deleted-messages-visible-line-endingsGravatar Joseph2020-02-02-0/+17
| |\
| | * Test for the attachment image to be in the staff logGravatar Akarys422019-11-20-0/+15
| | |
| | * Write tests for message.attachmentsGravatar Akarys422019-10-28-0/+2
| | |
| * | Make newlines visible in deleted messagesGravatar Sebastiaan Zeeff2019-10-31-5/+38
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/python-discord/site/issues/302 This commit makes newlines in deleted messages visible in the deleted messages front-end and makes sure they are not stripped during the conversion to HTML. To represent newlines, I've chosen a commonly used symbol: `↵`. In addition, I've kaizened the colour filter that translates integer representations of colours to their RGB hex-value. The Discord dark theme shows black colours (int: 0; hex: #000000) as white instead, to make reading them against the dark background easier. This commit makes sure our front-end displays the same behavior. This closes #302
* / Adjust deleted message test to account for new ordering of newest created first.Gravatar scragly2019-10-20-1/+1
|/
* Applying PR Feedback: Colour constants for readability & absolute importGravatar Sebastiaan Zeeff2019-09-01-6/+18
|
* Changing LogView to DetailView, as per Volcy's reviewGravatar Sebastiaan Zeeff2019-08-24-1/+1
|
* Adding tests for deleted message viewGravatar Sebastiaan Zeeff2019-08-23-2/+98
| | | | | | | Tests include: - Properly escaping html; - Correct messages have been passed to templates; - Embeds are both rendered by the template.
* Adding tests for filters and the deleted message front-end viewGravatar Sebastiaan Zeeff2019-08-23-0/+85
|
* Adding initial staff app to DjangoGravatar Sebastiaan Zeeff2019-08-23-0/+0