Skip to content

Commit

Permalink
Add separate tests for persistant and wait flags
Browse files Browse the repository at this point in the history
  • Loading branch information
bacecek committed Apr 8, 2024
1 parent 790af29 commit c9df1a6
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions tests/adbe_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,14 +467,21 @@ def test_location():

def test_debug_app_set():
_assert_success('debug-app set %s' % _TEST_APP_ID)
_assert_success('debug-app clear')


def test_debug_app_clear():
_assert_success('debug-app clear')


def test_debug_app_set_fail():
_assert_fail('debug-app set %s' % _TEST_NON_EXISTANT_APP_ID)
def test_debug_app_set_wait():
_assert_success('debug-app set %s -w' % _TEST_APP_ID)
_assert_success('debug-app clear')


def test_debug_app_set_persistant():
_assert_success('debug-app set %s -p' % _TEST_APP_ID)
_assert_success('debug-app clear')


def _assert_fail(sub_cmd):
Expand Down Expand Up @@ -568,7 +575,8 @@ def main():
test_location()
test_debug_app_set()
test_debug_app_clear()
test_debug_app_set_fail()
test_debug_app_set_wait()
test_debug_app_set_persistant()
# TODO: Add a test for screen record after figuring out how to perform ^C while it is running.


Expand Down

0 comments on commit c9df1a6

Please sign in to comment.