accounts/tests.py::TestSelectedInstance::test_selected_instance_through_session

First seen 1 year, 9 months ago in commit 1cd3a pushed by Anže Pečar

Last 100 Runs
Pass % 98.0%
p50 duration 0.1363s
p95 duration 0.3294s

39 runs 37 passed 2 failed in the last 30 days

Run 1 day ago
Status PASS
Commit

Fix issue with username regex

Commit 3a92b pushed by Anže Pečar
Run 3 days, 22 hours ago
Status PASS
Commit

Enable sentry logs

Commit aa6c6 pushed by Anže Pečar
Run 3 days, 23 hours ago
Status PASS
Commit

Upgrade dependencies (#195)

Commit 75b62 pushed by Anže Pečar
Run 3 days, 23 hours ago
Status PASS
Commit

Implement a poor man's retry logic

Commit d7225 pushed by Anže Pečar
Run 6 days, 11 hours ago
Status PASS
Commit

Remove not needed text

Commit fe040 pushed by Anže Pečar
Run 6 days, 13 hours ago
Status PASS
Commit

Merge 271c277417487a1df1e5ee60527d2550da219271 into 55d132ab7ee079d334f99cea677e86f9307fefb3

Commit 2b318 pushed by Anže Pečar
Run 1 week ago
Status PASS
Commit

Fixup dailyemail report

Commit 55d13 pushed by Anže Pečar
Run 1 week ago
Status PASS
Commit

Fix redirects

Commit 0a8b3 pushed by Anže Pečar
Run 1 week, 2 days ago
Status PASS
Commit

Fix yet another error

Commit 8a69f pushed by Anže Pečar
Run 1 week, 4 days ago
Status PASS
Commit

Update astral-sh/setup-uv action to v6.6.0 (#194)

Commit d86b4 pushed by renovate[bot]
Run 1 week, 4 days ago
Status PASS
Commit

Update pre-commit hook astral-sh/ruff-pre-commit to v0.12.10 (#193)

Commit 67ba9 pushed by renovate[bot]
Run 1 week, 4 days ago
Status PASS
Commit

Remove last error logs

Commit 75ea4 pushed by Anže Pečar
Run 1 week, 4 days ago
Status PASS
Commit

Merge 6153f143314566d460358ff2d708b47f76220442 into ac6d90bae147b5d2ef103a193bd9b56c9d43a4ae

Commit cf4ac pushed by renovate[bot]
Run 1 week, 4 days ago
Status PASS
Commit

Merge 9757f861c6d513065cb210db1ae8636d8d6e9b00 into ac6d90bae147b5d2ef103a193bd9b56c9d43a4ae

Commit 82a10 pushed by renovate[bot]
Run 1 week, 5 days ago
Status PASS
Commit

Fix edge case

Commit ac6d9 pushed by Anže Pečar
Run 1 week, 5 days ago
Status PASS
Commit

Cleanup

Commit fbdfe pushed by Anže Pečar
Run 1 week, 5 days ago
Status PASS
Commit

Fix warnings

Commit 7d76e pushed by Anže Pečar
Run 1 week, 6 days ago
Status FAIL
Commit

One more exception

Commit 967da pushed by Anže Pečar
Repr
self = <accounts.tests.TestSelectedInstance testMethod=test_selected_instance_through_session>

    def test_selected_instance_through_session(self):
>       self.client.get("/?selected_instance=mastodon.social")

accounts/tests.py:176: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.venv/lib/python3.13/site-packages/django/test/client.py:1124: in get
    response = super().get(
.venv/lib/python3.13/site-packages/django/test/client.py:475: in get
    return self.generic(
.venv/lib/python3.13/site-packages/django/test/client.py:671: in generic
    return self.request(**r)
           ^^^^^^^^^^^^^^^^^
.venv/lib/python3.13/site-packages/django/test/client.py:1087: in request
    self.check_exception(response)
.venv/lib/python3.13/site-packages/django/test/client.py:802: in check_exception
    raise exc_value
.venv/lib/python3.13/site-packages/django/core/handlers/exception.py:55: in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.13/site-packages/django/core/handlers/base.py:197: in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
accounts/views.py:281: in index
    account_access = request.user.accountaccess.account
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f60d44af350>>
args = ('accountaccess',)
_wrapped = <django.contrib.auth.models.AnonymousUser object at 0x7f60d44af350>

    def inner(self, *args):
        if (_wrapped := self._wrapped) is empty:
            self._setup()
            _wrapped = self._wrapped
>       return func(_wrapped, *args)
               ^^^^^^^^^^^^^^^^^^^^^
E       AttributeError: 'AnonymousUser' object has no attribute 'accountaccess'

.venv/lib/python3.13/site-packages/django/utils/functional.py:253: AttributeError
Run 1 week, 6 days ago
Status FAIL
Commit

Fix account access edge cases

Commit 745a8 pushed by Anže Pečar
Repr
self = <accounts.tests.TestSelectedInstance testMethod=test_selected_instance_through_session>

    def test_selected_instance_through_session(self):
>       self.client.get("/?selected_instance=mastodon.social")

accounts/tests.py:176: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.venv/lib/python3.13/site-packages/django/test/client.py:1124: in get
    response = super().get(
.venv/lib/python3.13/site-packages/django/test/client.py:475: in get
    return self.generic(
.venv/lib/python3.13/site-packages/django/test/client.py:671: in generic
    return self.request(**r)
           ^^^^^^^^^^^^^^^^^
.venv/lib/python3.13/site-packages/django/test/client.py:1087: in request
    self.check_exception(response)
.venv/lib/python3.13/site-packages/django/test/client.py:802: in check_exception
    raise exc_value
.venv/lib/python3.13/site-packages/django/core/handlers/exception.py:55: in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
.venv/lib/python3.13/site-packages/django/core/handlers/base.py:197: in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
accounts/views.py:281: in index
    account_access = request.user.accountaccess.account
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7fb4065f3350>>
args = ('accountaccess',)
_wrapped = <django.contrib.auth.models.AnonymousUser object at 0x7fb4065f3350>

    def inner(self, *args):
        if (_wrapped := self._wrapped) is empty:
            self._setup()
            _wrapped = self._wrapped
>       return func(_wrapped, *args)
               ^^^^^^^^^^^^^^^^^^^^^
E       AttributeError: 'AnonymousUser' object has no attribute 'accountaccess'

.venv/lib/python3.13/site-packages/django/utils/functional.py:253: AttributeError
Run 1 week, 6 days ago
Status PASS
Commit

Change logging level to error

Commit 778b8 pushed by Anže Pečar
Run 2 weeks ago
Status PASS
Commit

More warning cleanup

Commit c672f pushed by Anže Pečar
Run 2 weeks ago
Status PASS
Commit

Upgrade dependencies (#191)

Commit 4f01f pushed by Anže Pečar
Run 2 weeks ago
Status PASS
Commit

Merge 78304ffdf594fa48ef26907556b193a144fbdf26 into 57a6204982c48933f681bc5951a02ee510543996

Commit f462c pushed by Anže Pečar
Run 2 weeks, 4 days ago
Status PASS
Commit

Upgrade dependencies (#189)

Commit 57a62 pushed by Anže Pečar
Run 2 weeks, 4 days ago
Status PASS
Commit

Update pre-commit hook astral-sh/ruff-pre-commit to v0.12.9 (#190)

Commit b1717 pushed by renovate[bot]