Anthony Sottile | 8f61529 | 2022-01-15 19:24:05 -0500 | [diff] [blame] | 1 | from __future__ import annotations |
| 2 | |
Anthony Sottile | 3e45f53 | 2014-04-03 21:36:03 -0700 | [diff] [blame] | 3 | import os.path |
Mikhail Khvoinitsky | 10c5e4e | 2021-06-23 03:10:13 +0300 | [diff] [blame] | 4 | import subprocess |
Anthony Sottile | 3e45f53 | 2014-04-03 21:36:03 -0700 | [diff] [blame] | 5 | |
| 6 | |
| 7 | TESTING_DIR = os.path.abspath(os.path.dirname(__file__)) |
| 8 | |
| 9 | |
| 10 | def get_resource_path(path): |
| 11 | return os.path.join(TESTING_DIR, 'resources', path) |
Mikhail Khvoinitsky | 10c5e4e | 2021-06-23 03:10:13 +0300 | [diff] [blame] | 12 | |
| 13 | |
| 14 | def git_commit(*args, **kwargs): |
| 15 | cmd = ('git', 'commit', '--no-gpg-sign', '--no-verify', '--no-edit', *args) |
| 16 | subprocess.check_call(cmd, **kwargs) |