관리-도구
편집 파일: pytest_fixture_test.cpython-311.pyc
� �܋f� � �h � d dl Z d dlmc mZ d dlmZ e j j d� � � Zd� Z d� Z d� ZdS )� N)�Patcherc �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 �z/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pyfakefs/pytest_tests/pytest_fixture_test.py�test_example_file_failingr s/ � � �N�N�7�'�,�N�?�?�?�)�+�+�+�+�+� c �d � | � t j d�� � t � � dS )zRTest passes if using a fixture that reloads the module containing EXAMPLE_FILEr r Nr )�fs_reload_examples r �'test_example_file_passing_using_fixturer s2 � � �!�!�'�"6��!�N�N�N�)�+�+�+�+�+r c �� � t t g�� � 5 } | j � t j d�� � t � � ddd� � dS # 1 swxY w Y dS )z[Test passes if using a Patcher instance that reloads the module containing EXAMPLE_FILE)�modules_to_reloadr r N)r r r r r r )�patchers r �'test_example_file_passing_using_patcherr % s� � � �G�9� -� -� -� 0��� ���w�3�l��K�K�K�-�/�/�/�0� 0� 0� 0� 0� 0� 0� 0� 0� 0� 0� 0���� 0� 0� 0� 0� 0� 0s �5A�A� Ac �� � 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�B)�pytest�pyfakefs.pytest_tests.example�pytest_testsr �!pyfakefs.fake_filesystem_unittestr �mark�xfailr r r r � r r �<module>r% s� �� � � � � /� /� /� /� /� /� /� /� /� 5� 5� 5� 5� 5� 5� ���,� ,� ��,�,� ,� ,�0� 0� 0�*� *� *� *� *r