Projet de remplacement du "RPiPasserelle" d'Otec.
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.

test_heatpump.py 358B

123456789101112131415161718
  1. #!/usr/bin/env python3
  2. import pytest
  3. from starlette.testclient import TestClient
  4. import json
  5. from pyheatpump.heatpump import app
  6. def test_get_(set_test_db):
  7. c = TestClient(app)
  8. r = c.get('/')
  9. assert r.status_code == 200
  10. resp = r.content.decode()
  11. assert type(resp) == str
  12. d_resp = json.loads(resp)
  13. assert type(d_resp) == dict