diff options
author | Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> | 2018-03-12 09:53:40 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-03-12 09:53:40 +0000 |
commit | d8052ff06a3d4c1a160805113ceb489ec9ebeb85 (patch) | |
tree | 423ab587ccfc78cbd475593b5e818c2bd3c0abd3 /docs/submodules/yardstick | |
parent | eced405d21fae3180b7f545096985a3a263cb410 (diff) |
Update git submodules
* Update docs/submodules/yardstick from branch 'master'
- Merge "assertTrue(mock.called) -> mock.assert_called"
- assertTrue(mock.called) -> mock.assert_called
When checking whether a mocked method has been called,
mock.assert_called or mock.assert_called_once should be
used, and not unittest.assertTrue(mock.called)
This change does this update.
It can be verified with:
grep -irn "self.assertTrue(.*called)" --exclude-dir=.tox
And the replacement was done with:
sed -i 's/self.assertTrue(\(.*\).called)/\1.assert_called_once()/g' <list_of_files>
Change-Id: I4f26e0c736bf33e0b2413c8e8c33dbdb91f090e2
JIRA: YARDSTICK-865
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
Diffstat (limited to 'docs/submodules/yardstick')
m--------- | docs/submodules/yardstick | 0 |
1 files changed, 0 insertions, 0 deletions
diff --git a/docs/submodules/yardstick b/docs/submodules/yardstick -Subproject 31efe64526ae5250b103a313c3041baa79864b5 +Subproject 066a45edd22be0fa7dec8986b850d672a86ad0a |