HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pbr/tests/__pycache__/test_hooks.cpython-38.pyc
U

jP�^��@sZddlZddlmZddlmZddlmZddlmZddlmZGdd�dej	�Z
dS)	�N)�matchers)�
skipUnless)�
testr_command)�base)�utilcs8eZdZ�fdd�Zdd�Zeejd�dd��Z�Z	S)�	TestHooksc	sBtt|���t�tj�|jd���}|�	ddd�W5QRXdS)Nz	setup.cfg�globalzsetup-hookszQpbr_testpackage._setup_hooks.test_hook_1
pbr_testpackage._setup_hooks.test_hook_2)
�superr�setUprZopen_config�os�path�joinZpackage_dir�set)�selfZcfg��	__class__��6/usr/lib/python3/dist-packages/pbr/tests/test_hooks.pyr
4s��zTestHooks.setUpcCs,|�d�\}}}d|kst�|dks(t�dS)z�Test setup_hooks.

        Test that setup_hooks listed in the [global] section of setup.cfg are
        executed in order.
        Zegg_infoztest_hook_1
test_hook_2rN)�	run_setup�AssertionError�r�stdout�_Zreturn_coderrr�test_global_setup_hooks<sz!TestHooks.test_global_setup_hooksztestrepository not availablecCs0|�d�\}}}|�|�|�|t�d��dS)Nz--help-commandsz testr )rZassertFalseZ
assertThatrZContainsrrrr�test_custom_commands_knownGs
z$TestHooks.test_custom_commands_known)
�__name__�
__module__�__qualname__r
rrrZ
have_testrr�
__classcell__rrrrr3s
r)rZ	testtoolsrrZpbrrZ	pbr.testsrrZBaseTestCaserrrrr�<module>)s