This commit is contained in:
parent
7a565e0511
commit
32648d0f7a
@ -1,5 +1,6 @@
|
|||||||
|
import json
|
||||||
|
import os
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from flask import current_app
|
from flask import current_app
|
||||||
|
|
||||||
|
|
||||||
@ -12,6 +13,9 @@ def client():
|
|||||||
|
|
||||||
|
|
||||||
def test_response_length(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
|
assert len(r) == 0
|
||||||
|
@ -22,8 +22,7 @@ def test_log_code_get(client):
|
|||||||
|
|
||||||
def test_log_code_post(client):
|
def test_log_code_post(client):
|
||||||
data = {
|
data = {
|
||||||
"uuid": os.environ["LOCAL_UUID"],
|
"uuid": os.environ["LOCAL_UUID"]
|
||||||
"message": "Hello There!"
|
|
||||||
}
|
}
|
||||||
r = client.post('/sync', data = json.dumps(data))
|
r = client.post('/sync', data = json.dumps(data))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user