Merge branch 'dev-unittests' into dev
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2020-05-13 17:33:13 +02:00
commit a945a13196
2 changed files with 8 additions and 5 deletions

View File

@ -1,5 +1,6 @@
import json
import os
import pytest
from flask import current_app
@ -12,6 +13,9 @@ def client():
def test_response_length(client):
r = client.get('/consumers')
data = {
"uuid": os.environ["LOCAL_UUID"],
"message": "Hello There!"
}
r = client.get('/consumers', data = json.dumps(data))
assert len(r) == 0

View File

@ -22,8 +22,7 @@ def test_log_code_get(client):
def test_log_code_post(client):
data = {
"uuid": os.environ["LOCAL_UUID"],
"message": "Hello There!"
"uuid": os.environ["LOCAL_UUID"]
}
r = client.post('/sync', data = json.dumps(data))