Connect P04 audited recovery to fresh-MFA platform browser flow
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a092fe-13b1-7f12-ac74-7d258af4d79c
This commit is contained in:
parent
b2cce8dd7c
commit
58e07dd4df
7 changed files with 201 additions and 7 deletions
|
|
@ -13,6 +13,7 @@ from wsgiref.simple_server import make_server, WSGIRequestHandler
|
|||
ROOT=Path(__file__).resolve().parents[1]
|
||||
sys.path[:0]=[str(ROOT/'src'),str(ROOT/'tests')]
|
||||
from test_journey_roles import JourneyFixture
|
||||
from test_factor_recovery_journey import FactorRecoveryJourney
|
||||
|
||||
chrome=os.environ.get('JOURNEY_CHROME') or shutil.which('chromium') or shutil.which('google-chrome')
|
||||
if not chrome:
|
||||
|
|
@ -20,7 +21,7 @@ if not chrome:
|
|||
chrome=str(matches[-1]) if matches else None
|
||||
if not chrome or not shutil.which('node'):
|
||||
raise SystemExit('Chromium and Node are required; set JOURNEY_CHROME to the Chromium executable. Browser tests were not run.')
|
||||
fixture=JourneyFixture();fixture.setUp();fixture.member(email='actual.login@example.test')
|
||||
fixture=FactorRecoveryJourney();fixture.setUp();fixture.member(email='actual.login@example.test')
|
||||
class Quiet(WSGIRequestHandler):
|
||||
def log_message(self,*args):pass
|
||||
server=make_server('127.0.0.1',0,fixture.app,handler_class=Quiet)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue