升级后端并开源UI

This commit is contained in:
pycook
2019-08-28 20:34:10 +08:00
committed by pycook
parent 02c01f60bf
commit 20fd6393e4
114 changed files with 5243 additions and 4543 deletions

10
tests/test_cmdb_ci.py Normal file
View File

@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
class TestCI:
def test_ci_search_only_type_query(self, app):
with app.test_client() as c:
rv = c.get('/api/v0.1/ci/s?q=_type:server', json={})
json_data = rv.get_json()
assert type(json_data.get("result")) is list