Skip to content

Commit

Permalink
duplicate IDs test
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomif committed Nov 14, 2023
1 parent 2681aee commit 47b0631
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Tests/duplicate_ids.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2019 Shlomi Fish <[email protected]>
#
# 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)

0 comments on commit 47b0631

Please sign in to comment.