Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/test/integration/__pycache__/test_client.cpython-39.pyc
Ðазад
a t�h� � @ s~ d Z ddlZddlZddlmZ ejdd� �Zdd� Zdd � Z d d� Z ej�dd gdddhgddhgg�dd� �Z dd� ZdS )z"Integration tests for Flask-Redis.� N)�clientc C s t �t�S �N)�flaskZFlask�__name__� r r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/test/integration/test_client.py�app s r c C s, t �| �}|jdusJ �t|jd�s(J �dS )zLTest that a constructor with app instance will initialize the connectionN�connection_pool)�uut� FlaskRedis� _redis_client�hasattr�r �redisr r r �test_constructor s r c C sl t �� }|jdu sJ �|�| � |jdus.J �t|jd�s>J �t| d�rhd| jv sVJ �| jd |kshJ �dS )z�Test that a constructor without app instance will not initialize the connection. After FlaskRedis.init_app(app) is called, the connection will be initialized.Nr � extensionsr )r r r �init_appr r r r r r � test_init_app s r c C s\ d| j d<