aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/home/tests (follow)
Commit message (Collapse)AuthorAgeLines
* Add tests for new raise_for_status test shim helpersGravatar Joe Banks2024-08-15-0/+9
|
* Add raise_for_status to MockResponse in repodata helper testsGravatar Joe Banks2024-08-15-0/+10
|
* Switch to ruff for lintingGravatar Johannes Christ2023-05-10-1/+1
|
* Make unittests independent of GitHub (#948)Gravatar Johannes Christ2023-04-22-1/+4
| | | | | | | | | This fixes a problem where running the unit tests successively a lot would result in 403 ratelimit exceeded errors being thrown due to the GitHub API being called by the app. Fixes #918 Co-authored-by: wookie184 <[email protected]>
* Fix Unittest Deprecation WarningsGravatar Hassan Abouelela2022-09-04-3/+3
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Switch Out requests For httpxGravatar Hassan Abouelela2022-07-11-6/+6
| | | | | | | | The requests library has been replaced by httpx. It's a drop-in replacement, but provides a better interface for certain things, such as client sessions, and sync/async support. Signed-off-by: Hassan Abouelela <[email protected]>
* Capture GitHub response logsGravatar Johannes Christ2022-03-02-1/+4
|
* Merge branch 'master' into subdomains-to-query-pathsGravatar Johannes Christ2021-10-06-1/+1
|\
| * Update mock GitHub API responseGravatar Joe Banks2021-09-10-1/+1
| | | | | | | | Fixes breaking tests
* | Move subdomains to query paths.Gravatar Johannes Christ2021-06-08-2/+2
|/ | | | | | | | | | | | | | 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 main into dewikificationGravatar kosayoda2021-05-14-8/+36
|
* Remove allauth references from the home app.Gravatar Leon Sandøy2020-10-04-212/+1
|
* Remove files related to django-allauth.Gravatar Leon Sandøy2020-10-04-458/+0
|
* Remove wiki template tags.Gravatar Leon Sandøy2020-10-04-238/+0
|
* Update landing page.Gravatar Leon Sandøy2020-09-03-1/+1
| | | | Replace flake8-annotations with metricity.
* Fix broken github api test dataGravatar Leon Sandøy2020-06-07-1/+1
|
* Alter signal tests to make use of new user roles syntaxGravatar Joseph Banks2020-06-02-5/+5
|
* No longer accept or track avatar_hash.Gravatar Leon Sandøy2020-05-27-5/+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).
* Add more pre-commit hooksGravatar MarkKoz2020-03-04-1/+1
| | | | | | | | | | | | | | | | | | | | | | Hooks added: * check-merge-conflict - checks for files with merge conflict strings * check-toml - attempts to load all toml files to verify syntax * check-yaml - attempts to load all yaml files to verify syntax * end-of-file-fixer - ensures files end in a newline and only a newline * mixed-line-ending - replaces mixed line endings with LF * trailing-whitespace - trims trailing whitespace * python-check-blanket-noqa - enforces that noqa annotations always occur with specific codes Changes made to comply with new hooks: * Remove trailing whitespaces * Remove some useless noqa annotations * Specify errors for noqa annotations * Add missing newlines at end of files See: python-discord/organisation#138
* Full coverage and finish cleanupGravatar Gareth Coles2019-10-23-0/+86
|
* Full test coverage, better redirect testingGravatar Gareth Coles2019-10-22-1/+110
|
* Signals: Complete coverage in testsGravatar Gareth Coles2019-10-20-0/+41
|
* Tests for the new signal listener is_staff changesGravatar Gareth Coles2019-10-20-4/+25
|
* Allauth: Address reviews by @lemonsaurusGravatar Gareth Coles2019-10-14-20/+32
|
* Signals: Handle (and test) mapping updates/deletionsGravatar Gareth Coles2019-10-11-8/+80
| | | | This also enforces unique values for both attributes on the RoleMapping model. Supporting configurations where this isn't the case would introduce quite a lot of added complexity.
* Signals: Fix test for `deletion=True` changeGravatar Gareth Coles2019-10-11-1/+1
|
* Clean up signal tests as per @jchristgit's reviewGravatar Gareth Coles2019-10-11-9/+10
|
* Register GH provider manually in testsGravatar Gareth Coles2019-10-06-0/+9
|
* Test allauth redirect URLsGravatar Gareth Coles2019-10-05-0/+14
|
* Clean up and comment signal testsGravatar Gareth Coles2019-10-04-17/+29
|
* Add docstrings to tests, and test role mapping __str__()Gravatar Gareth Coles2019-10-04-4/+19
|
* Tests for signal handlersGravatar Gareth Coles2019-10-04-0/+283
|
* Add test cases for `TypeError` fallbacks.Gravatar Johannes Christ2019-09-16-0/+33
|
* Fix misconfigured flake8 so docstrings are properly lintedGravatar S. Co12019-09-05-2/+2
| | | Relint
* Teach new lint rules to old codeGravatar Jeremiah Boby2019-07-10-6/+0
|
* 100% coverageGravatar Gareth Coles2019-04-20-0/+7
|
* Merge branch 'django' into django+200/wikiGravatar Gareth Coles2019-04-20-16/+166
|\ | | | | | | | | | | | | | | | | | | # Conflicts: # Pipfile # Pipfile.lock # pydis_site/apps/home/tests/test_app_basics.py # pydis_site/apps/home/urls.py # pydis_site/hosts.py # pydis_site/settings.py
| * Make the flakes happy.Gravatar Johannes Christ2019-04-20-1/+1
| |
| * Add type hinting.Gravatar Leon Sandøy2019-04-20-5/+5
| |
| * Adding a Discord menu item to the hamburger, and upping test coverage back ↵Gravatar Leon Sandøy2019-04-20-1/+14
| | | | | | | | to 100%
| * Addressing all comments in volcyy's second review. The tests now mock the ↵Gravatar Leon Sandøy2019-04-19-0/+153
| | | | API calls so we don't have to actually call the API every time we run tests.
* Update Pipfile.lock and move home app testsGravatar Gareth Coles2019-04-19-0/+16
|
* Lint and update django-simple-bulmaGravatar Gareth Coles2019-04-19-1/+4
|
* Tests for templatetagsGravatar Gareth Coles2019-04-19-3/+184
|
* Wiki requires notification plugin, so we're stuck with itGravatar Gareth Coles2019-04-19-8/+16
|
* First testing attemptGravatar Gareth Coles2019-04-19-0/+39