~nteodosio/software-properties:ua-attach-tests

Last commit made on 2023-03-07
Get this branch:
git clone -b ua-attach-tests https://git.launchpad.net/~nteodosio/software-properties
Only Nathan Teodosio can upload to this branch. If you are Nathan Teodosio please log in for upload directions.

Branch merges

Branch information

Name:
ua-attach-tests
Repository:
lp:~nteodosio/software-properties

Recent commits

90017fa... by Nathan Teodosio

d/control: nocheck for the new build-depends

9d3f38f... by Nathan Teodosio

Fix missing pin_label.

7f7e9e2... by Nathan Teodosio

Add handy and ua-tools deps to d/control.

These are required in the source package, else the tests fail to import the modules and the build fails.

9d4c042... by Nathan Teodosio

Update dh_auto_test to use xvfb-run.

Needed for GTK, else:

  File "/home/nteodosio/canonical/ubuntu-advantage/software-properties/tests/test_ua_attach.py", line 40, in setUp
      self.d = DialogUaAttach(Gtk.Window(), "data", self.ua_object)

  File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 519, in __init__
      raise RuntimeError(
      RuntimeError: Gtk couldn't be initialized. Use Gtk.init_check() if you want to handle this case.

20a7057... by Nathan Teodosio

Update the internet check, that didn't work

146d506... by Nathan Teodosio

Move test_gui_state_after_token_submission to WithoutInternet test suite.

e4ab9e2... by Nathan Teodosio

Linters

x

0562e9d... by Nathan Teodosio

Check with update_state(pin_validated) instead

1d1144b... by Nathan Teodosio

Test that PIN validation waits to update UI until magic radio is selected.

18ddda5... by Nathan Teodosio

Test that PIN validation waits until its radio is on.