the DbStorage tests appear to be running fine now, without any changes. I did find one other issue with pytest, where an imported class called TestObject caused the test list generation to fail, so I fixed that.
Current output from pytest looks like this:
n8pease@Nates-MacBook-Pro ~/2/lsstsw/build/daf_persistence[tickets/DM-7157]$ py.test tests/*.py
============================================================================================== test session starts ==============================================================================================
platform darwin – Python 2.7.12, pytest-3.0.3, py-1.4.31, pluggy-0.4.0
rootdir: /Users/n8pease/2/lsstsw/build/daf_persistence, inifile:
collected 120 items
tests/DbAuth.py ...
tests/DbStorage_1.py s..
tests/DbStorage_2.py s..
tests/LogicalLocation.py ...
tests/Persistence_1.py ...
tests/Persistence_2.py sss..
tests/butlerAlias.py ...........
tests/butlerPickle.py ....
tests/butlerSubset.py .......
tests/dataId.py ......
tests/mapper.py .......
tests/mapperImport.py .....
tests/repoFindByDate.py x..
tests/reposInButler.py x..
tests/repository.py .................
tests/repositoryArgs.py .....
tests/repositoryCfg.py .....
tests/safeFileIo.py ....
tests/testFsScanner.py ....
tests/testPolicy.py ................
tests/testRegistry.py ...
=============================================================================== 113 passed, 5 skipped, 2 xfailed in 3.53 seconds ================================================================================
n8pease@Nates-MacBook-Pro ~/2/lsstsw/build/daf_persistence[tickets/DM-7157]$
the DbStorage tests appear to be running fine now, without any changes. I did find one other issue with pytest, where an imported class called TestObject caused the test list generation to fail, so I fixed that.
Current output from pytest looks like this:
n8pease@Nates-MacBook-Pro ~/2/lsstsw/build/daf_persistence[tickets/DM-7157]$ py.test tests/*.py
============================================================================================== test session starts ==============================================================================================
platform darwin – Python 2.7.12, pytest-3.0.3, py-1.4.31, pluggy-0.4.0
rootdir: /Users/n8pease/2/lsstsw/build/daf_persistence, inifile:
collected 120 items
tests/DbAuth.py ...
tests/DbStorage_1.py s..
tests/DbStorage_2.py s..
tests/LogicalLocation.py ...
tests/Persistence_1.py ...
tests/Persistence_2.py sss..
tests/butlerAlias.py ...........
tests/butlerPickle.py ....
tests/butlerSubset.py .......
tests/dataId.py ......
tests/mapper.py .......
tests/mapperImport.py .....
tests/repoFindByDate.py x..
tests/reposInButler.py x..
tests/repository.py .................
tests/repositoryArgs.py .....
tests/repositoryCfg.py .....
tests/safeFileIo.py ....
tests/testFsScanner.py ....
tests/testPolicy.py ................
tests/testRegistry.py ...
=============================================================================== 113 passed, 5 skipped, 2 xfailed in 3.53 seconds ================================================================================
n8pease@Nates-MacBook-Pro ~/2/lsstsw/build/daf_persistence[tickets/DM-7157]$