my eye

Clean up test results summary

Committed 688f0a

--- a/webint_code/templates/project/index.html
+++ b/webint_code/templates/project/index.html

     $if test_results["errors"]:
         $ test_color = "red"
         $ test_indicator = "■"
-        $ test_msg = f"{test_results['errors']} tests of {test_results['tests']} failing"
+        $ plural = ""
+        $if len(test_results["errors"] > 1:
+            $ plural = "s"
+        $ test_msg = f"{test_results['errors']} test{plural} of {test_results['tests']} failing"
     $else:
         $ test_color = "green"
         $ test_indicator = "●"
-        $ test_msg = f"{test_results['tests']} tests passing"
+        $ plural = ""
+        $if len(test_results["tests"] > 1:
+            $ plural = "s"
+            $ test_msg = f"{test_results['tests']} test{plural} passing"
     <span style=color:$test_color>$:test_indicator</span>
-    $test_msg in $test_results["time"]&thinsp;s</p>
+    $test_msg in $test_results["time"]<small>s</small></p>
 
 <hr>