mirror of
https://github.com/Nebucatnetzer/environment_sensors.git
synced 2024-07-21 16:27:30 +02:00
14 lines
325 B
Python
14 lines
325 B
Python
|
import datetime
|
||
|
import pytest
|
||
|
from django.test import TestCase
|
||
|
|
||
|
from collector.models import Time, Temperatur, Humidity
|
||
|
|
||
|
pytestmark=pytest.mark.django_db
|
||
|
|
||
|
|
||
|
def test_create_temperatur():
|
||
|
time = Time.objects.create(value=datetime.datetime.now())
|
||
|
temp = Temperatur.objects.create(value=20.0, time=time)
|
||
|
assert False
|