def test_add(self):
slims = Slims("testSlims", "http://localhost:9999", "admin", "admin")
responses.add(
responses.PUT,
'http://localhost:9999/rest/Content',
json={"entities": [{
"pk": 1,
"tableName": "Content",
"columns": []
}]},
content_type='application/json',
)
added = slims.add("Content", {"test": "foo"})
self.assertIsInstance(added, Record)
评论列表
文章目录