Skip to content

Commit

Permalink
Reboot check test python version (New) (#1338)
Browse files Browse the repository at this point in the history
* feat: initial migration

* feat: created a wrapper for subprocess.run()

* fix: incorrect main function logic

* style: add more error messages

* fix: no display connectio n-> skipped

* refactor: move device comparison tests to a class

* test: unit tests for reboot_check_test

* fix: remove any direct calls to subprocess.run

* test: add a test for the all-flags-enabled case

* style: reorganize declarations

* fix: missing .value when using enums

* refactor: separate tests into more classes

* refactor: add clenup methods

* refactor: group tests into classes

* fix: update tests to reflect changes in reboot_check_test

* style: formatting, comments

* fix: extra -g flag, add comments

* fix: remove get_display_id due to too many edge cases

* fix: extra wrapper for non-existent commands

* style: fit everything within 80 char limit

* test: update unit tests to reflect new method names

* fix: assume display variable

* test: update tests to reflect removal of get_display_id

* fix: missing conditionals on certain logs

* fix: let unity support infer environment variable

* refactor: revert changes in boot.pxu to put in a separate PR

* fix: flake8 linter errors

* fix: increase test coverage

* fix: combine dpkg check conditions

* update: use the new desktop env detector

* test: increase coverage

* style: formatting

* fix: remove subprocess.run wrapper

* fix: use class attributes instead of enum to avoid writing .value

* fix: reflect changes in unit tests

* style: formatting
  • Loading branch information
tomli380576 authored Oct 4, 2024
1 parent 597b01f commit 5022493
Show file tree
Hide file tree
Showing 2 changed files with 821 additions and 0 deletions.
Loading

0 comments on commit 5022493

Please sign in to comment.