summaryrefslogtreecommitdiffstats
path: root/testing/util.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--testing/util.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/testing/util.py b/testing/util.py
index 7c68d0e..08d52cb 100644
--- a/testing/util.py
+++ b/testing/util.py
@@ -3,6 +3,7 @@ from __future__ import annotations
import contextlib
import os.path
import subprocess
+import sys
import pytest
@@ -30,7 +31,7 @@ def cmd_output_mocked_pre_commit_home(
return ret, out.replace('\r\n', '\n'), None
-xfailif_windows = pytest.mark.xfail(os.name == 'nt', reason='windows')
+xfailif_windows = pytest.mark.xfail(sys.platform == 'win32', reason='windows')
def run_opts(
@@ -43,9 +44,11 @@ def run_opts(
local_branch='',
from_ref='',
to_ref='',
+ pre_rebase_upstream='',
+ pre_rebase_branch='',
remote_name='',
remote_url='',
- hook_stage='commit',
+ hook_stage='pre-commit',
show_diff_on_failure=False,
commit_msg_filename='',
prepare_commit_message_source='',
@@ -66,6 +69,8 @@ def run_opts(
local_branch=local_branch,
from_ref=from_ref,
to_ref=to_ref,
+ pre_rebase_upstream=pre_rebase_upstream,
+ pre_rebase_branch=pre_rebase_branch,
remote_name=remote_name,
remote_url=remote_url,
hook_stage=hook_stage,