summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_runner.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_runner.py b/tests/test_runner.py
index d4de019..b1c0e70 100644
--- a/tests/test_runner.py
+++ b/tests/test_runner.py
@@ -9,6 +9,20 @@ import common
import runner
+class Test(unittest.TestCase):
+ def test_get_submodule(self) -> None:
+ """
+ We can locate submodules.
+ """
+ submodule = runner.get_submodule("qt/qtbase")
+ self.assertIsInstance(submodule, str)
+ submodule = cast(str, submodule)
+ self.assertEqual(submodule, "qtbase")
+
+ self.assertIsInstance(runner.get_submodule("qtbase"), common.Error)
+ self.assertIsInstance(runner.get_submodule("qt/qt/qtbase"), common.Error)
+
+
class TestArguments(unittest.TestCase):
def test_parse(self) -> None:
"""