Mercurial > moin > 2.0
changeset 817:de75a93b21fe pytest2
cleanup of conftest
author | pkumar <contactprashantat@gmail.com> |
---|---|
date | Sat, 27 Aug 2011 22:16:45 +0530 |
parents | 3bfe393013e9 |
children | c7e87a7ab121 |
files | MoinMoin/conftest.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/conftest.py Wed Aug 24 09:17:48 2011 +0530 +++ b/MoinMoin/conftest.py Sat Aug 27 22:16:45 2011 +0530 @@ -119,8 +119,6 @@ clean_backend() super(MoinTestFunction, self).teardown() - # Need to modify and add more stuffs - def pytest_pycollect_makemodule(path, parent): return Module(path, parent=parent) @@ -146,7 +144,7 @@ # such items raise keyerror on test_item.destroy() # add the key 'uuid' to such items key_list = test_item.keys() - if not 'uuid' in key_list: + if 'uuid' not in key_list: test_item.change_metadata() test_item['uuid'] = 'temp_uuid' test_item.publish_metadata()