]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: replace assertDictContainsSubset() with assertLessEqual() 37158/head
authorKefu Chai <kchai@redhat.com>
Tue, 15 Sep 2020 12:13:57 +0000 (20:13 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 15 Sep 2020 16:09:48 +0000 (00:09 +0800)
commit38556993af5c79a4183d2f5791fbf4b96f3f8ced
tree7a9e5522934ca13dcb4e19f7df07e97d1d83fa67
parentebdb8e56e55488bf2280b4da6c370936940ee554
mgr/dashboard: replace assertDictContainsSubset() with assertLessEqual()

to silence the warnings like

tests/test_access_control.py::AccessControlTest::test_show_all_users
  /usr/lib/python3.6/unittest/case.py:1126: DeprecationWarning: assertDictContainsSubset is deprecated
    DeprecationWarning)

as assertDictContainsSubset() method was deprecated, see also
https://dev.rbcafe.com/python/python-3.5.1/whatsnew/3.2.html#unittest

Signed-off-by: Volker Theile <vtheile@suse.com>
src/pybind/mgr/dashboard/tests/test_access_control.py