Merge ~pieq/bugit/+git/qabro:fix-1887903-gi-snapd into bugit:master
Status: | Merged |
---|---|
Approved by: | Pierre Equoy |
Approved revision: | c33317e7d9303e13b59184e38ddd8b2a136604e7 |
Merged at revision: | 58d863ddb47bf77078da7a30bf25bfed8fd95e2e |
Proposed branch: | ~pieq/bugit/+git/qabro:fix-1887903-gi-snapd |
Merge into: | bugit:master |
Diff against target: |
418 lines (+222/-82) 8 files modified
CONTRIBUTING.md (+113/-0) qabro/__init__.py (+4/-4) qabro/bug_assistant.py (+15/-15) qabro/utils.py (+7/-62) setup.cfg (+6/-0) setup.py (+4/-0) snap/snapcraft.yaml (+4/-1) tests/test_bug_assistant.py (+69/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Maciej Kisielewski (community) | Approve | ||
Devices Certification Bot | Pending | ||
Review via email: mp+390065@code.launchpad.net |
Description of the change
Summary
=======
This brings two different things:
1. A new way to discuss with Snapd, from using sockets to using gobject-
2. Some unit tests using pytest, and a contributing guidelines to help newcomers setting up test env and running unit tests.
I recommend reviewing the changes commit per commit for more clarity.
How it was tested
=================
1. Run the latest version of qabro on a device that exhibits bug lp:1887903 bug:
$ sudo snap install qabro --edge --devmode
qabro (edge) 0.14dev from Pierre Equoy (pieq) installed
$ qabro
Traceback (most recent call last):
File "/snap/
sys.
(...)
File "/snap/
raise JSONDecodeError
json.decoder.
2. Build a snap from this branch, and install it on the same device:
# locally
$ snapcraft
$ scp qabro_0.
# on the test device
$ sudo snap install qabro_0.
3. Run qabro again
$ qabro
This time, the interface shows up!
[1] https:/
[2] https:/
Following a discussion with Stanley regarding the use of pytest, I've revamped a bit the unit tests in order to parametrize some of them.