[at-spi2-core: 4/11] Put all the Accessibility property tests in a single function




commit 6a531ebe5e097d277a7b07e142e98009d622253f
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Jul 13 15:02:37 2022 -0500

    Put all the Accessibility property tests in a single function
    
    We already had machinery for that, anyway.

 tests/registryd/test_root_accessible.py | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/tests/registryd/test_root_accessible.py b/tests/registryd/test_root_accessible.py
index 60fe00f1..a19fcb2a 100644
--- a/tests/registryd/test_root_accessible.py
+++ b/tests/registryd/test_root_accessible.py
@@ -14,13 +14,9 @@ def test_accessible_iface_properties(registry_root, session_manager):
     values = [
         ('Name',        'main'),
         ('Description', ''),
+        ('Parent',      ('', '/org/a11y/atspi/null')),
+        ('ChildCount',  0),
     ]
 
     for prop_name, expected in values:
         assert get_property(registry_root, ACCESSIBLE_IFACE, prop_name) == expected
-
-def test_registry_root_has_null_parent(registry_root, session_manager):
-    assert get_property(registry_root, ACCESSIBLE_IFACE, 'Parent') == ('', '/org/a11y/atspi/null')
-
-def test_empty_registry_has_zero_children(registry_root, session_manager):
-    assert get_property(registry_root, ACCESSIBLE_IFACE, 'ChildCount') == 0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]