network_inventory/customers/tests/test_customer.py

10 lines
253 B
Python
Raw Normal View History

2019-12-10 22:20:34 +01:00
import pytest
from mixer.backend.django import mixer
pytestmark = pytest.mark.django_db
def test_customer_reverse_url():
2022-03-27 14:50:44 +02:00
customer = mixer.blend("customers.Customer")
assert customer.get_absolute_url() == "/customer/" + str(customer.id) + "/"