test: add basic test code and attribute create api test case

This commit is contained in:
penzai
2020-01-17 15:08:46 +08:00
parent 17392be138
commit 105327bb0c
5 changed files with 160 additions and 1 deletions

17
cmdb-api/local_test.py Normal file
View File

@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
"""For debugging in ide"""
from tests.conftest import *
from pytest_mock import mocker
from _pytest.config import _prepareconfig
from tests.test_cmdb_attribute import test_create_attribute
for a in app():
for d in database(a):
for s in session(d, a):
for c in client(a):
for m in mocker(_prepareconfig()):
clean_db()
test_create_attribute(s, c)