sort unit tests

Fri, 18 Sep 2020 20:26:05 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Fri, 18 Sep 2020 20:26:05 +0300
changeset 120
11af938d6076
parent 119
29ba0edf8419
child 121
35b95d1806c9

sort unit tests

unittest.py file | annotate | diff | comparison | revisions
--- a/unittest.py	Fri Sep 18 20:26:00 2020 +0300
+++ b/unittest.py	Fri Sep 18 20:26:05 2020 +0300
@@ -11,7 +11,7 @@
     import os
     unit_test_dir = Path(script_directory) / 'unittests'
     for dirpath, dirnames, filenames in os.walk(unit_test_dir):
-        yield from (
+        yield from sorted(
             Path(dirpath) / filename
             for filename in filenames
             if filename.endswith('.test')

mercurial