mirror of
https://github.com/github/spec-kit.git
synced 2026-08-03 06:26:30 +08:00
test(workflows): accept redirect_validator kwarg in step-add open_url fakes
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -6151,7 +6151,7 @@ class TestWorkflowStepAddCLI:
|
||||
def geturl(self):
|
||||
return self.url
|
||||
|
||||
def _fake_open_url(url, timeout=30):
|
||||
def _fake_open_url(url, timeout=30, redirect_validator=None):
|
||||
return _FakeResponse(url)
|
||||
|
||||
monkeypatch.setattr(StepCatalog, "get_step_info", _fake_get_step_info)
|
||||
@@ -6210,7 +6210,7 @@ class TestWorkflowStepAddCLI:
|
||||
def geturl(self):
|
||||
return self.url
|
||||
|
||||
def _fake_open_url(url, timeout=30):
|
||||
def _fake_open_url(url, timeout=30, redirect_validator=None):
|
||||
return _FakeResponse(url)
|
||||
|
||||
monkeypatch.setattr(StepCatalog, "get_step_info", _fake_get_step_info)
|
||||
@@ -6258,7 +6258,7 @@ class TestWorkflowStepAddCLI:
|
||||
def geturl(self):
|
||||
return self.url
|
||||
|
||||
def _fake_open_url(url, timeout=30):
|
||||
def _fake_open_url(url, timeout=30, redirect_validator=None):
|
||||
return _FakeResponse(url)
|
||||
|
||||
monkeypatch.setattr(StepCatalog, "get_step_info", _fake_get_step_info)
|
||||
|
||||
Reference in New Issue
Block a user