mirror of https://github.com/interlegis/sapl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
614 B
16 lines
614 B
import pytest
|
|
from django.urls import reverse
|
|
|
|
|
|
@pytest.mark.parametrize(
|
|
"test_input,kwargs,expected",
|
|
[
|
|
("sapl.materia:relatoria_update", {"pk": "11"}, "/materia/relatoria/11/edit"),
|
|
("sapl.materia:tramitacao_update", {"pk": "8"}, "/materia/tramitacao/8/edit"),
|
|
("sapl.materia:proposicao_create", {}, "/proposicao/create"),
|
|
("sapl.materia:proposicao_update", {"pk": "3"}, "/proposicao/3/edit"),
|
|
("sapl.materia:proposicao_list", {}, "/proposicao/"),
|
|
],
|
|
)
|
|
def test_reverse(test_input, kwargs, expected):
|
|
assert reverse(test_input, kwargs=kwargs) == expected
|
|
|