Changeset a2cdc7d in osmose-backend


Ignore:
Timestamp:
Jun 1, 2014 10:54:25 PM (5 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Branches:
master
Children:
a910761
Parents:
f6117b7
Message:

Skip tests needing a postgresql database if not available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • analysers/Analyser_Osmosis.py

    rb755753 ra2cdc7d  
    248248        conf.init() 
    249249        if not skip_db: 
    250             osmose_run.check_database(conf) 
     250            if not osmose_run.check_database(conf): 
     251                from nose import SkipTest 
     252                raise SkipTest("database not present") 
    251253            osmose_run.init_database(conf) 
    252254 
Note: See TracChangeset for help on using the changeset viewer.