mirror of
https://github.com/AdaCore/git-hooks.git
synced 2026-02-12 12:43:11 -08:00
This commit introduces an entirely new testsuite framework based on
pytest, and then converts all our existing testcases to this new
framework.
Note: One helpful way to review this patch is to use "git show -w";
For the most part, this patch just changes the indentation level
of existing code. By asking "git show" to hide changes which only
involve changes in spaces, the reviewer is left with the "essence"
of the change.
Note: There are some testcases where the content transfer encoding changes
from 8bit to base64. This is an enhancement brought by using a more
recent version of Python, and in particular of the email support
classes it provides.
Note: There are commits where the "[Errno 2] No such file or directory"
error message now includes the path that's missing. E.g:
- cannot_find_style_checker
- update_hook_not_found
Still left to do:
- Remove the old testsuite framework;
- Remove the py2-only code;
- Remove references to __future__;
These will be taken care of via separate commits (for ease of review).
Change-Id: Ib44bda6d5e12be44f73c7ea65d6f6e610efb872d
TN: U530-006