PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
pyfakefs
/
pytest_tests
/
__pycache__
� �|oic � � � d dl Z d dlZd dlmc mZ ej j d� � � Zej � ddegggd�� � d� � � Z d� Z d� ZdS ) � Nc �d � | � t j d�� � t � � dS )zLTest fails because EXAMPLE_FILE is cached in the module and not patched.� stuff here��contentsN��create_file�example�EXAMPLE_FILE�%check_that_example_file_is_in_fake_fs��fss ��/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pyfakefs/pytest_tests/pytest_fixture_param_test.py�test_example_file_failingr �/ � � �N�N�7�'�,�N�?�?�?�)�+�+�+�+�+� r T)�indirectc �d � | � t j d�� � t � � dS )zRTest passes if using a fixture that reloads the module containing EXAMPLE_FILEr r Nr r s r �4test_example_file_passing_using_parametrized_fixturer r r c �� � t t j � � 5 } | � � � dk sJ � d d d � � n# 1 swxY w Y t j � � � 5 } | � � � dk sJ � d d d � � n# 1 swxY w Y t j � � � dk sJ �t j � � � sJ �d S )Nr )�openr r �read� read_text�is_file)�files r r r % sE � � �g�"� #� #� +�t��y�y�{�{�l�*�*�*�*�*�+� +� +� +� +� +� +� +� +� +� +���� +� +� +� +� � � "� "� $� $� +���y�y�{�{�l�*�*�*�*�*�+� +� +� +� +� +� +� +� +� +� +���� +� +� +� +���)�)�+�+�|�;�;�;�;���'�'�)�)�)�)�)�)�)s# �A�A� A�+B�B�Bc � � | � d� � t j d� � t j d� � d S )Nz/absolute/path/to/directory)� create_dir�os�chdirr s r �test_twice_chdirr . s? � � �M�M�/�0�0�0��H� *�+�+�+��H� *�+�+�+�+�+r )r �pytest�pyfakefs.pytest_tests.example�pytest_testsr �mark�xfailr �parametrizer r r � r r �<module>r'