mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 09:02:44 +08:00
test: add basic test code and attribute create api test case
This commit is contained in:
17
cmdb-api/local_test.py
Normal file
17
cmdb-api/local_test.py
Normal 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)
|
Reference in New Issue
Block a user