Skip to content

Commit

Permalink
Update front favicon.ico
Browse files Browse the repository at this point in the history
  • Loading branch information
tulimaki committed Feb 17, 2021
1 parent 1702703 commit c8fa33b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Binary file modified shuup/front/static/shuup/front/img/favicon.ico
100644 → 100755
Binary file not shown.
10 changes: 9 additions & 1 deletion shuup_tests/front/test_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from django.conf import settings
from django.contrib.auth import logout
from django.contrib.auth.models import AnonymousUser
from django.test import override_settings
from django.utils import timezone

import shuup.core.models
Expand Down Expand Up @@ -201,7 +202,14 @@ def test_with_statics(rf):
shop = get_default_shop() # Create a shop

request = apply_request_middleware(rf.get("/static/test.png"))
assert not hasattr(request, "customer")
assert hasattr(request, "customer") # Since debug is False

request = apply_request_middleware(rf.get("/"))
assert hasattr(request, "customer")

with override_settings(DEBUG=True):
request = apply_request_middleware(rf.get("/static/test.png"))
assert not hasattr(request, "customer") # Since debug is True

request = apply_request_middleware(rf.get("/"))
assert hasattr(request, "customer")

0 comments on commit c8fa33b

Please sign in to comment.