From 7a6851eb7f0f7431f55e8fabf59b2bdd87e7cf95 Mon Sep 17 00:00:00 2001 From: "F.Tibor" Date: Fri, 30 Jan 2026 14:22:30 +0100 Subject: [PATCH 1/2] Formating --- test/unit/template/test_template.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/test/unit/template/test_template.py b/test/unit/template/test_template.py index 8113cdd2..c1a94695 100644 --- a/test/unit/template/test_template.py +++ b/test/unit/template/test_template.py @@ -23,20 +23,22 @@ class TestTemplate(TestBase): """TODO: Add a description""" + # Set working directory __test_path__ = os.path.dirname(os.path.abspath(__file__)) # TODO: fix folder name - BAZEL_BIN_DIR = os.path.join("../../..", "bazel-bin", "test", - "unit", "my_test_folder") - BAZEL_TESTLOGS_DIR = os.path.join("../../..", "bazel-testlogs", "test", - "unit", "my_test_folder") + BAZEL_BIN_DIR = os.path.join( + "../../..", "bazel-bin", "test", "unit", "my_test_folder" + ) + BAZEL_TESTLOGS_DIR = os.path.join( + "../../..", "bazel-testlogs", "test", "unit", "my_test_folder" + ) @final @classmethod def setUpClass(cls): """TODO: Define set up before the test suite""" super().setUpClass() - cls.run_command("bazel clean") @final @classmethod From a76607379f9dad5a9bdc7016fbf8773563910bb9 Mon Sep 17 00:00:00 2001 From: "F.Tibor" Date: Mon, 2 Feb 2026 08:25:24 +0100 Subject: [PATCH 2/2] Add command running example --- test/unit/template/test_template.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/template/test_template.py b/test/unit/template/test_template.py index c1a94695..b9f21a3d 100644 --- a/test/unit/template/test_template.py +++ b/test/unit/template/test_template.py @@ -56,7 +56,8 @@ def tearDown(self): def test_template(self): """Test: TODO: describe your test""" - self.assertTrue(True) + return_code, stdout, stderr = self.run_command("bazel build //src:*") + self.assertEqual(0, return_code, stderr) if __name__ == "__main__":