It's not possible to access the path attribute
Bug #1205204 reported by
Leo Arias
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot |
Fix Released
|
Critical
|
Unassigned | ||
autopilot (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I'm writing tests for the ubuntu-
But when I do element.path, instead of the folder path I get the dbus path.
I think that's because on DBusIntrospecti
def __init__(self, state_dict, path):
self.path = path
So we are overwriting the original path attribute.
Related branches
lp:~thomir-deactivatedaccount/autopilot/1.3-fix-path-attr-hiding
- PS Jenkins bot: Approve (continuous-integration)
- Leo Arias (community): Approve (code review)
- Autopilot Hackers: Pending requested
-
Diff: 53 lines (+16/-4)2 files modifiedautopilot/introspection/dbus.py (+4/-4)
autopilot/tests/unit/test_introspection_features.py (+12/-0)
Superseded
for merging
into
lp:autopilot
- Autopilot Hackers: Pending requested
-
Diff: 187 lines (+93/-7)5 files modifiedautopilot/input/__init__.py (+16/-3)
autopilot/input/_uinput.py (+10/-0)
autopilot/introspection/dbus.py (+4/-4)
autopilot/tests/functional/test_input_stack.py (+51/-0)
autopilot/tests/unit/test_introspection_features.py (+12/-0)
Changed in autopilot: | |
importance: | Medium → Critical |
Changed in autopilot: | |
assignee: | nobody → Thomi Richards (thomir) |
status: | Confirmed → In Progress |
Changed in autopilot: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Maybe we can store the dbus path on self.dbus_path. Of course, we would have the same problem if the UI element has a dbus_path attribute, but it sounds less common.
Or maybe, we should store the dbus path on __dbus_path and add a method get_dbus_path.