environment_sensors/sensors/collector/tests/test_views.py

20 lines
381 B
Python

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
def test_index_temperature():
response = Client().get('/')
assert response.status_code == 200
def test_history_view():
response = Client().get('/history/36')
assert response.status_code == 200