GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — daily_coding_problem/problems/run_tests.py at master · ihossai4/daily_coding_problem Expand file tree/ Copy pathrun_tests.pyMore file actions 16 lines (11 loc) · 494 Bytes / Copy pathrun_tests.pyFile metadata and controls16 lines (11 loc) · 494 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 import importlib from pathlib import Path from doctest import testmod def run_tests(wild_path='**/solution_*.py', verbose=False): for filename in sorted(Path(__file__).parent.glob(wild_path)): module_name = '.'.join((filename.parent.name, filename.stem)) module = importlib.import_module(module_name) results = testmod(module, verbose=verbose) print(f'{filename.name}: {"FAIL" if results.failed else "PASS"}') if __name__ == '__main__': run_tests() |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |