Should

Latest version: v0.5.4

Safety actively analyzes 619504 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.5.4

~~~~~~~~~~~~~~~~

* 增加 subclassof 接口
* 添加 shouldnt 取反属性

0.5.3

~~~~~~~~~~~~~~~~

* 增加 count 接口
* 增加 same 接口, 判断是否为同一个对象
* 拆分测试文件

0.5.2

~~~~~~~~~~~~~~~~

* 小重构, 删除 _flag 属性
* match/search 支持 list 和 dict. dict 只验证值
* .contain 支持 contain(v1, v2, v3)

0.5.1

~~~~~~~~~~~~~~~~

* 修复 1, 解决自测问题
* 结构化目录, 让代码清晰一点
* 链式调用部分用元类改写
* less/greater 添加 'below/above' 别名

0.5.0

~~~~~~~~~~~~~~~~

* 删除原 `raises` 接口, 不再支持 with should.raises 语法
* `raises` 接口改为 `throw` 的等价接口
* `key` 会改变链式调用. 后续值为键所对应的值

0.4.8

~~~~~~~~~~~~~~~~

* fix `throw` 在 2.* 只能接受 `str` 的问题
* 如 it(1).should.be.int 的类型断言, 不断言 property
* proper 和 own_proper 增加别名 property 和 own_property
* 增加 properties 和 own_properties. 对对象支持列表式断言
* 增加 keys, 对字典支持列表式断言

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.