2019-10-20 21:22:27 +02:00
|
|
|
import pytest
|
|
|
|
from mixer.backend.django import mixer
|
|
|
|
|
|
|
|
from django.test import Client
|
|
|
|
|
|
|
|
from .helper import in_content, not_in_content
|
|
|
|
|
|
|
|
pytestmark=pytest.mark.django_db
|
|
|
|
|
|
|
|
|
2019-10-24 22:35:50 +02:00
|
|
|
def test_index_view():
|
2019-10-20 21:22:27 +02:00
|
|
|
response = Client().get('/')
|
|
|
|
assert response.status_code == 200
|
|
|
|
|
2019-10-24 22:35:12 +02:00
|
|
|
|
|
|
|
def test_history_view():
|
|
|
|
response = Client().get('/history/36')
|
|
|
|
assert response.status_code == 200
|
|
|
|
|