mirror of
https://github.com/feder-cr/invisible_playwright.git
synced 2026-06-07 08:35:12 +02:00
18 lines
350 B
Python
18 lines
350 B
Python
|
|
import random
|
||
|
|
|
||
|
|
import pytest
|
||
|
|
|
||
|
|
from invisible_playwright._fpforge import generate_profile
|
||
|
|
|
||
|
|
|
||
|
|
@pytest.fixture
|
||
|
|
def deterministic_rng():
|
||
|
|
"""Seeded RNG for reproducible tests."""
|
||
|
|
return random.Random(42)
|
||
|
|
|
||
|
|
|
||
|
|
@pytest.fixture
|
||
|
|
def sample_profile():
|
||
|
|
"""A Profile generated from seed=42 for reuse across tests."""
|
||
|
|
return generate_profile(seed=42)
|