From afecd744ca828f4b6c1f3bed67f47c0e7781c8c2 Mon Sep 17 00:00:00 2001 From: James Westman Date: Thu, 28 Oct 2021 00:13:46 -0500 Subject: [PATCH] Fix tests --- meson.build | 2 +- tests/meson.build | 1 + tests/test_parser.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 tests/meson.build diff --git a/meson.build b/meson.build index c96e662..843f301 100644 --- a/meson.build +++ b/meson.build @@ -29,4 +29,4 @@ if not meson.is_subproject() install_subdir('gtkblueprinttool', install_dir: py.get_install_dir()) endif -test('tests', py, args: ['-m', 'unittest']) +subdir('tests') diff --git a/tests/meson.build b/tests/meson.build new file mode 100644 index 0000000..8e51a47 --- /dev/null +++ b/tests/meson.build @@ -0,0 +1 @@ +test('tests', py, args: ['-m', 'unittest'], workdir: meson.source_root()) diff --git a/tests/test_parser.py b/tests/test_parser.py index d8a70a6..eb140bc 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -52,7 +52,7 @@ class TestParser(unittest.TestCase): } } submenu {} - item _("Copy") copy-symbolic app.copy; + item _("Copy") "copy-symbolic" "app.copy"; } Label {