From 47b0631f915065730d97ef181e7db7746133954a Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Tue, 14 Nov 2023 10:42:22 +0200 Subject: [PATCH] duplicate IDs test --- Tests/duplicate_ids.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Tests/duplicate_ids.py diff --git a/Tests/duplicate_ids.py b/Tests/duplicate_ids.py new file mode 100644 index 0000000000..a9b94690e1 --- /dev/null +++ b/Tests/duplicate_ids.py @@ -0,0 +1,26 @@ +#! /usr/bin/env python3 +# -*- coding: utf-8 -*- +# vim:fenc=utf-8 +# +# Copyright © 2019 Shlomi Fish +# +# Distributed under terms of the MIT license. + +import unittest + +import html_unit_test +from html_unit_test import HtmlCheckDuplicateIDs + + +class MyTests(html_unit_test.TestCase): + def test_main(self): + ret, dups = HtmlCheckDuplicateIDs().check_dir_tree( + root="dest/post-incs/t2/" + ) + self.assertTrue(ret, "HtmlCheckDuplicateIDs") + + +if __name__ == '__main__': + from pycotap import TAPTestRunner + suite = unittest.TestLoader().loadTestsFromTestCase(MyTests) + TAPTestRunner().run(suite)