
    1~hZ                         d dl Z d dlmZ d dlmZ d Z e j                  dd      d        Z e j                         d        Zy)	    N)Faker)DEFAULT_LOCALEsessionT)scopeautousec                 h    d| j                   v r| j                  d      }nt        g}t        |      S )zFixture that stores the session level ``Faker`` instance.

    This fixture is internal and is only meant for use within the project.
    Third parties should instead use the ``faker`` fixture for their tests.
    faker_session_localelocale)fixturenamesgetfixturevaluer   r   )requestr   s     d/var/www/peopleoo.sandbox-dev.co.uk/venv/lib/python3.12/site-packages/faker/contrib/pytest/plugin.py_session_fakerr   	   s6     !5!55(()?@ !    c                 "   d| j                   v r| j                  d      }t        |      }n| j                  d      }t        }d| j                   v r| j                  d      }|j	                  |       |j
                  j                          |S )z>Fixture that returns a seeded and suitable ``Faker`` instance.faker_localer
   r   
faker_seed)seed)r   r   r   DEFAULT_SEEDseed_instanceuniqueclear)r   r   faker   s       r   fakerr      s     ---((8F#&&'78Dw+++&&|4D!KKKr   )pytestr   r   faker.configr   r   fixturer    r   r   <module>r       sQ      ' i.
  /
   r   