Browse Source

adequa captura de imagem a mundança de local do sapl-frontend

pull/2501/head
Leandro Roberto 6 years ago
parent
commit
312ee68cf6
  1. 2
      sapl/base/tests/test_login.py
  2. 2
      sapl/urls.py

2
sapl/base/tests/test_login.py

@ -13,7 +13,7 @@ def user():
def test_login_aparece_na_barra_para_usuario_nao_logado(client):
response = client.get('/')
assert '<a class="nav-link" href="/login/"><img src="/static/img/user.png"></a>' in str(
assert '<a class="nav-link" href="/login/"><img src="/static/sapl/img/user.png"></a>' in str(
response.content)

2
sapl/urls.py

@ -60,7 +60,7 @@ urlpatterns = [
url(r'', include(sapl.api.urls)),
url(r'^favicon\.ico$', RedirectView.as_view(
url='/static/img/favicon.ico', permanent=True)),
url='/static/sapl/img/favicon.ico', permanent=True)),
url(r'', include(sapl.redireciona_urls.urls)),
]

Loading…
Cancel
Save