Coverage for src/tests/ 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

9 statements  

1from couchers.db import session_scope 

2from couchers.resources import copy_resources_to_database 

3from dummy_data import add_dummy_data 

4from tests.test_fixtures import db # noqa 



7def test_add_dummy_data(db, caplog): 

8 # copy the real resources to the database: this way if the testing resources go out of date with the real ones 

9 # causing dummy data to fail, we'll catch it easily 

10 with session_scope() as session: 

11 copy_resources_to_database(session) 


13 add_dummy_data() 

14 assert len(caplog.records) == 0