Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Add tests for new raise_for_status test shim helpers | 2024-08-15 | -0/+9 | |
| | ||||
* | Add raise_for_status to MockResponse in repodata helper tests | 2024-08-15 | -0/+10 | |
| | ||||
* | Switch to ruff for linting | 2023-05-10 | -1/+1 | |
| | ||||
* | Make unittests independent of GitHub (#948) | 2023-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 Warnings | 2022-09-04 | -3/+3 | |
| | | | | Signed-off-by: Hassan Abouelela <[email protected]> | |||
* | Switch Out requests For httpx | 2022-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 logs | 2022-03-02 | -1/+4 | |
| | ||||
* | Merge branch 'master' into subdomains-to-query-paths | 2021-10-06 | -1/+1 | |
|\ | ||||
| * | Update mock GitHub API response | 2021-09-10 | -1/+1 | |
| | | | | | | | | Fixes breaking tests | |||
* | | Move subdomains to query paths. | 2021-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 dewikification | 2021-05-14 | -8/+36 | |
| | ||||
* | Remove allauth references from the home app. | 2020-10-04 | -212/+1 | |
| | ||||
* | Remove files related to django-allauth. | 2020-10-04 | -458/+0 | |
| | ||||
* | Remove wiki template tags. | 2020-10-04 | -238/+0 | |
| | ||||
* | Update landing page. | 2020-09-03 | -1/+1 | |
| | | | | Replace flake8-annotations with metricity. | |||
* | Fix broken github api test data | 2020-06-07 | -1/+1 | |
| | ||||
* | Alter signal tests to make use of new user roles syntax | 2020-06-02 | -5/+5 | |
| | ||||
* | No longer accept or track avatar_hash. | 2020-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 hooks | 2020-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 cleanup | 2019-10-23 | -0/+86 | |
| | ||||
* | Full test coverage, better redirect testing | 2019-10-22 | -1/+110 | |
| | ||||
* | Signals: Complete coverage in tests | 2019-10-20 | -0/+41 | |
| | ||||
* | Tests for the new signal listener is_staff changes | 2019-10-20 | -4/+25 | |
| | ||||
* | Allauth: Address reviews by @lemonsaurus | 2019-10-14 | -20/+32 | |
| | ||||
* | Signals: Handle (and test) mapping updates/deletions | 2019-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` change | 2019-10-11 | -1/+1 | |
| | ||||
* | Clean up signal tests as per @jchristgit's review | 2019-10-11 | -9/+10 | |
| | ||||
* | Register GH provider manually in tests | 2019-10-06 | -0/+9 | |
| | ||||
* | Test allauth redirect URLs | 2019-10-05 | -0/+14 | |
| | ||||
* | Clean up and comment signal tests | 2019-10-04 | -17/+29 | |
| | ||||
* | Add docstrings to tests, and test role mapping __str__() | 2019-10-04 | -4/+19 | |
| | ||||
* | Tests for signal handlers | 2019-10-04 | -0/+283 | |
| | ||||
* | Add test cases for `TypeError` fallbacks. | 2019-09-16 | -0/+33 | |
| | ||||
* | Fix misconfigured flake8 so docstrings are properly linted | 2019-09-05 | -2/+2 | |
| | | | Relint | |||
* | Teach new lint rules to old code | 2019-07-10 | -6/+0 | |
| | ||||
* | 100% coverage | 2019-04-20 | -0/+7 | |
| | ||||
* | Merge branch 'django' into django+200/wiki | 2019-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. | 2019-04-20 | -1/+1 | |
| | | ||||
| * | Add type hinting. | 2019-04-20 | -5/+5 | |
| | | ||||
| * | Adding a Discord menu item to the hamburger, and upping test coverage back ↵ | 2019-04-20 | -1/+14 | |
| | | | | | | | | to 100% | |||
| * | Addressing all comments in volcyy's second review. The tests now mock the ↵ | 2019-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 tests | 2019-04-19 | -0/+16 | |
| | ||||
* | Lint and update django-simple-bulma | 2019-04-19 | -1/+4 | |
| | ||||
* | Tests for templatetags | 2019-04-19 | -3/+184 | |
| | ||||
* | Wiki requires notification plugin, so we're stuck with it | 2019-04-19 | -8/+16 | |
| | ||||
* | First testing attempt | 2019-04-19 | -0/+39 | |