Mercurial > hgrepos > Python > apps > py-cutils
view tests/test_treesum.py @ 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 | |
| children | ff4424a7a8cf |
line wrap: on
line source
# -*- 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())
