~canonical-platform-qa/ubuntu-system-tests/qemu-build-snap

« back to all changes in this revision

Viewing changes to ubuntu_system_tests/helpers/gallery/app.py

  • Committer: Omer Akram
  • Date: 2016-12-05 16:36:34 UTC
  • mfrom: (487.4.1 old-trunk)
  • Revision ID: om26er@ubuntu.com-20161205163634-ixv4q21jfwx8ggi5
Substantially fix trunk history

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
    :return: Proxy object for gallery application.
43
43
 
44
44
    """
45
 
    from ubuntu_system_tests.helpers.gallery import _cpo  # NOQA
 
45
    from ubuntu_system_tests.helpers.gallery import cpo  # NOQA
46
46
    launch_application_from_apps_scope(APP_NAME)
47
47
    return get_gallery_app_proxy()
48
48
 
59
59
    :return: Proxy object for gallery application.
60
60
 
61
61
    """
62
 
    from ubuntu_system_tests.helpers.gallery._cpo import GalleryApplication
 
62
    from ubuntu_system_tests.helpers.gallery.cpo import GalleryApplication
63
63
    proxy = autopilot.get_proxy_object(processes.get_process_id(APP))
64
64
    return proxy.select_single(GalleryApplication)
65
65
 
66
66
 
67
67
def get_gallery_events_view():
68
68
    """Return a gallery_app EventsView custom proxy object."""
69
 
    from ubuntu_system_tests.helpers.gallery import _cpo  # NOQA
 
69
    from ubuntu_system_tests.helpers.gallery import cpo  # NOQA
70
70
    return get_gallery_app_proxy().events_view
71
71
 
72
72
 
73
73
def get_gallery_photo_viewer():
74
74
    """Return a gallery_app PhotoViewer custom proxy object."""
75
 
    from ubuntu_system_tests.helpers.gallery import _cpo  # NOQA
 
75
    from ubuntu_system_tests.helpers.gallery import cpo  # NOQA
76
76
    return get_gallery_app_proxy().photos_view
77
77
 
78
78