def test_imap_folder_sync_enabled(db, default_account):
 create_foldersyncstatuses(db, default_account)
 assert all([fs.sync_enabled for fs in default_account.foldersyncstatuses])
 default_account.disable_sync('testing')
 db.session.commit()
 assert all([(not fs.sync_enabled) for fs in default_account.foldersyncstatuses])

def test_imap_folder_sync_enabled ( db , default_account ) : create_foldersyncstatuses ( db , default_account ) assert all ( [ fs . sync_enabled for fs in default_account . foldersyncstatuses ] ) default_account . disable_sync ( 'testing' ) db . session . commit ( ) assert all ( [ ( not fs . sync_enabled ) for fs in default_account . foldersyncstatuses ] )
test that the imap folders sync_enabled property mirrors the account level sync_enabled property .