~tomasgroth/openlp/portable-path

« back to all changes in this revision

Viewing changes to tests/interfaces/openlp_core/ui/test_servicemanager.py

  • Committer: Tomas Groth
  • Date: 2019-04-30 19:02:42 UTC
  • mfrom: (2829.2.32 openlp)
  • Revision ID: tomasgroth@yahoo.dk-20190430190242-6zwjk8724tyux70m
trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
###############################################################################
5
5
# OpenLP - Open Source Lyrics Projection                                      #
6
6
# --------------------------------------------------------------------------- #
7
 
# Copyright (c) 2008-2018 OpenLP Developers                                   #
 
7
# Copyright (c) 2008-2019 OpenLP Developers                                   #
8
8
# --------------------------------------------------------------------------- #
9
9
# This program is free software; you can redistribute it and/or modify it     #
10
10
# under the terms of the GNU General Public License as published by the Free  #
28
28
from PyQt5 import QtCore, QtGui, QtWidgets
29
29
 
30
30
from openlp.core.common.registry import Registry
31
 
from openlp.core.lib import ServiceItem, ItemCapabilities
 
31
from openlp.core.lib.serviceitem import ItemCapabilities, ServiceItem
32
32
from openlp.core.ui.servicemanager import ServiceManager
33
33
from tests.helpers.testmixin import TestMixin
34
34
 
226
226
            # A service item without capabilities.
227
227
            service_item = ServiceItem()
228
228
            service_item.add_capability(ItemCapabilities.CanLoop)
229
 
            service_item._raw_frames.append("One")
230
 
            service_item._raw_frames.append("Two")
 
229
            service_item.slides.append("One")
 
230
            service_item.slides.append("Two")
231
231
            self.service_manager.service_items = [{'service_item': service_item}]
232
232
            q_point = None
233
233
            # Mocked actions.