Mercurial > hgrepos > Python > apps > py-cutils
changeset 380:58552d3d1766
treesum: begin unittests for treesums and .treesum files
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 12 May 2025 15:33:16 +0200 |
| parents | 6d7659a709f2 |
| children | ff4424a7a8cf |
| files | tests/test_treesum.py |
| diffstat | 1 files changed, 38 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test_treesum.py Mon May 12 15:33:16 2025 +0200 @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +# :- +# SPDX-FileCopyrightText: © 2025 Franz Glasner +# SPDX-License-Identifier: BSD-3-Clause +# :- +r"""Unit tests for treesum + +""" + +from __future__ import absolute_import, print_function + +import os +import shutil +import sys +import unittest + +from _test_setup import (DATADIR, TMPDIR) + +import cutils.treesum + + +class TreesumTests(unittest.TestCase): + + def setUp(self): + if not os.path.isdir(TMPDIR): + os.mkdir(TMPDIR) + + def tearDown(self): + if os.path.isdir(TMPDIR): + shutil.rmtree(TMPDIR) + + def test_xxx(self): + self.assertTrue(True) + + +if __name__ == "__main__": + print(TMPDIR) + sys.exit(unittest.main())
