Generate fact JSON directly in python

This commit is contained in:
redref
2017-03-23 23:08:37 +01:00
parent b17a2b0450
commit c1fd33fb5c
3 changed files with 33 additions and 57 deletions

View File

@@ -727,7 +727,7 @@ def test_fact_json_with_graph(client, mocker,
assert 'chart' in result_json
assert len(result_json['chart']) == 5
# Test group_by
assert result_json['chart'][3]['value'] == 2
assert result_json['chart'][0]['value'] == 2
def test_fact_json_without_graph(client, mocker,