accounts/tests.py::TestSelectedInstance::test_no_selected_instance

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.1037s
p95 duration 0.2009s

44 runs 42 passed 2 failed in the last 30 days

Run 11 hours ago
Status PASS
Commit

Fix yet another error

Commit 8a69f pushed by Anže Pečar
Run 2 days, 14 hours ago
Status PASS
Commit

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

Commit d86b4 pushed by renovate[bot]
Run 2 days, 14 hours 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 2 days, 23 hours ago
Status PASS
Commit

Remove last error logs

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

Merge 6153f143314566d460358ff2d708b47f76220442 into ac6d90bae147b5d2ef103a193bd9b56c9d43a4ae

Commit cf4ac pushed by renovate[bot]
Run 3 days, 2 hours ago
Status PASS
Commit

Merge 9757f861c6d513065cb210db1ae8636d8d6e9b00 into ac6d90bae147b5d2ef103a193bd9b56c9d43a4ae

Commit 82a10 pushed by renovate[bot]
Run 3 days, 6 hours ago
Status PASS
Commit

Fix edge case

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

Cleanup

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

Fix warnings

Commit 7d76e pushed by Anže Pečar
Run 4 days, 12 hours ago
Status FAIL
Commit

One more exception

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

    def test_no_selected_instance(self):
>       response = self.client.get("/")
                   ^^^^^^^^^^^^^^^^^^^^

accounts/tests.py:72: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.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 0x7f60d3ef4190>>
args = ('accountaccess',)
_wrapped = <django.contrib.auth.models.AnonymousUser object at 0x7f60d3ef4190>

    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 4 days, 12 hours ago
Status FAIL
Commit

Fix account access edge cases

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

    def test_no_selected_instance(self):
>       response = self.client.get("/")
                   ^^^^^^^^^^^^^^^^^^^^

accounts/tests.py:72: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.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 0x7fb4072cfed0>>
args = ('accountaccess',)
_wrapped = <django.contrib.auth.models.AnonymousUser object at 0x7fb4072cfed0>

    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 4 days, 12 hours ago
Status PASS
Commit

Change logging level to error

Commit 778b8 pushed by Anže Pečar
Run 5 days, 18 hours ago
Status PASS
Commit

More warning cleanup

Commit c672f pushed by Anže Pečar
Run 5 days, 18 hours ago
Status PASS
Commit

Upgrade dependencies (#191)

Commit 4f01f pushed by Anže Pečar
Run 5 days, 18 hours ago
Status PASS
Commit

Merge 78304ffdf594fa48ef26907556b193a144fbdf26 into 57a6204982c48933f681bc5951a02ee510543996

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

Upgrade dependencies (#189)

Commit 57a62 pushed by Anže Pečar
Run 1 week, 2 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]
Run 1 week, 3 days ago
Status PASS
Commit

Merge da0a95585a594edb412975d04739d4fad8d7315e into 21005ddd99faf61c5027480920c85e13a8ed6c25

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

Merge 7cd825219bc2efe41ec615134e915c6d72bf69ed into 21005ddd99faf61c5027480920c85e13a8ed6c25

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

Update pre-commit dependencies (#188)

Commit 21005 pushed by renovate[bot]
Run 2 weeks, 2 days ago
Status PASS
Commit

Update all dependencies (#187)

Commit 3a385 pushed by renovate[bot]
Run 2 weeks, 3 days ago
Status PASS
Commit

Merge ed387236b390cdf83cde523e6347e1db581ccd81 into a052ad8e84b7d03524b23df5d5ab7b4b0e81765f

Commit 18a35 pushed by renovate[bot]
Run 2 weeks, 3 days ago
Status PASS
Commit

Merge b9efd6026178ea3c625392818c6bcf3c035d4cf5 into a052ad8e84b7d03524b23df5d5ab7b4b0e81765f

Commit 77523 pushed by renovate[bot]
Run 2 weeks, 3 days ago
Status PASS
Commit

Looking at the stats the timeout could be even lower

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

Decrease request timeout

Commit 7fed3 pushed by Anže Pečar