Share a photo from the gallery with Facebook
Bug #1322080 reported by
Brendan Donegan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Autopilot Tests |
In Progress
|
Undecided
|
Víctor R. Ruiz |
Bug Description
Pre-requisites: A photo in the gallery. A Facebook account in Facebook.
1. Open gallery-app.
2. Select the photo.
3. Share the photo with Facebook.
4. Check that the photo was shared.
Related branches
lp://staging/~vrruiz/gallery-app/test-share-photo
Superseded
for merging
into
lp://staging/gallery-app
- PS Jenkins bot: Needs Fixing (continuous-integration)
- Leo Arias (community): Needs Fixing (code review)
- Ubuntu Phablet Team: Pending requested
-
Diff: 284 lines (+242/-0)4 files modifieddebian/control (+2/-0)
tests/autopilot/gallery_app/credentials.py (+117/-0)
tests/autopilot/gallery_app/emulators/photo_viewer.py (+18/-0)
tests/autopilot/gallery_app/tests/test_share.py (+105/-0)
lp://staging/~vrruiz/gallery-app/autopilot-app-class
Ready for review
for merging
into
lp://staging/gallery-app
- PS Jenkins bot: Needs Fixing (continuous-integration)
- Leo Arias (community): Needs Fixing
-
Diff: 2084 lines (+720/-698)9 files modifiedtests/autopilot/gallery_app/__init__.py (+415/-0)
tests/autopilot/gallery_app/tests/__init__.py (+6/-280)
tests/autopilot/gallery_app/tests/test_album_editor.py (+34/-54)
tests/autopilot/gallery_app/tests/test_album_view.py (+55/-56)
tests/autopilot/gallery_app/tests/test_albums_view.py (+11/-19)
tests/autopilot/gallery_app/tests/test_events_view.py (+41/-53)
tests/autopilot/gallery_app/tests/test_photo_viewer.py (+102/-156)
tests/autopilot/gallery_app/tests/test_photos_view.py (+35/-48)
tests/autopilot/gallery_app/tests/test_picker_mode.py (+21/-32)
Changed in ubuntu-autopilot-tests: | |
status: | New → In Progress |
description: | updated |
Changed in ubuntu-autopilot-tests: | |
assignee: | nobody → Víctor R. Ruiz (vrruiz) |
To post a comment you must log in.
lp:~vrruiz/gallery-app/test-share-photo has the code which shares a photo with Facebook. The test mocks the friends-dispatcher service to capture the call to the Upload method, which is defined as:
@dbus. service. method( DBUS_INTERFACE,
in_ signature= 'sss',
out_ signature= 's',
async_ callbacks= ('success' ,'failure' ))
def Upload(self, account_id, uri, description, success=STUB, failure=STUB):
When Friends calls to the Upload service, it does it asynchronously, expecting either success or failure functions to be called back after the photo has been posted. To mock the service, I've used python-dbusmock, which currently doesn't support callbacks, so the test doesn't work correctly.