403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/incremental/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/incremental/tests/__pycache__/test_pyproject.cpython-314.pyc
+
Hwi��d�Rt^RIt^RIHtHtHt^RIHt^RIH	t	^RI
HtHt!RR]	4t
R#)z1Test handling of ``pyproject.toml`` configurationN)�cast�Optional�Union)�Path)�TestCase)�_load_pyproject_toml�_IncrementalConfigc�ta�]tRt^toRtRR/V3RlRlltRtRtRtR	t	R
t
RtRtR
t
RtRtVtR#)�VerifyPyprojectDotTomlTestsz/Test the `_load_pyproject_toml` helper function�pathNc�T<�V^8�dQhRS[RS[S[S[R3,RS[S[,/#)��tomlrN�return)�strrrrr)�format�
__classdict__s"��B/usr/lib/python3/dist-packages/incremental/tests/test_pyproject.py�__annotate__�(VerifyPyprojectDotTomlTests.__annotate__s6�������"'��c�4��"8��	�$�	%��c�P�VfVP4pM\V4p\VR4;_uu_4pVPV4RRR4\	V4# +'giL;i \
d-p\
TR4'dTPRT24hRp?ii;i)z�
Read a TOML snipped from a temporary file with `_load_pyproject_toml`

@param toml: TOML content of the temporary file

@param path: Path to which the TOML is written
N�w�add_notezWhile loading:

)�mktempr�open�writer�	Exception�hasattrr)�selfrr�path_�f�es&&$   r�	_loadToml�%VerifyPyprojectDotTomlTests._loadTomls����<��K�K�M�E���I�E�
�%��
�
��
�G�G�D�M��	�'��.�.�	�
��
�	��q�*�%�%��
�
�(���/��
��	�s#�A�
A.�A+	�.B%�9'B � B%c��\PP\\VP44R4pVP
\\V4R#)zN
An absent ``pyproject.toml`` file produces no result unless
there is opt-in.
�pyproject.tomlN)	�osr�joinrrr�assertRaises�FileNotFoundErrorr)rrs& r�test_fileNotFound�-VerifyPyprojectDotTomlTests.test_fileNotFound-s:��
�w�w�|�|�D��d�k�k�m�4�6F�G�����+�-A�4�Hrc�L�RpVP\VPV4R#)zp
Syntactially invalid TOML produces an exception. The specific
exception varies by the underlying TOML library.
z[project]
name = "abcN)r)rr#�rrs& r�test_brokenToml�+VerifyPyprojectDotTomlTests.test_brokenToml5s��
(�����)�T�^�^�T�:rc�Z�RF$pVP\VPV4K&	R#)z@
`ValueError` is raised when we can't extract the project name.
N)�
z[tool.notincremental]
z
[project]
z[tool.incremental]
z[project]
[tool.incremental]
�r)�
ValueErrorr#r.s& r�test_nameMissing�,VerifyPyprojectDotTomlTests.test_nameMissing=s&��
�D�
���j�$�.�.�$�?�
rc��RF;pVP\R4;_uu_4VPV4RRR4K=	R# +'giKR;i)z=
`TypeError` is raised when the project name isn't a string.
z!The project name must be a stringN)z[project]
name = false
z[tool.incremental]
name = -1
z([tool.incremental]
[project]
name = 1.0
)�assertRaisesRegex�	TypeErrorr#r.s& r�test_nameInvalidOptIn�1VerifyPyprojectDotTomlTests.test_nameInvalidOptInJsF��
�D�
�'�'�	�3V�W�W����t�$�X�W�
�
X�W�W�s�A�Ac�Z�RF$pVP\VPV4K&	R#)zU
`ValueError` is raised when the ``[tool]`` or ``[tool.incremental]``
isn't a table.
N)z
tool = false
zool]
incremental = false
z[tool]
incremental = 123
z[tool]
incremental = null
r3r.s& r�test_toolIncrementalInvalid�7VerifyPyprojectDotTomlTests.test_toolIncrementalInvalidVs&��

�D�
���j�$�.�.�$�?�

rc�Z�RF$pVP\VPV4K&	R#)z`
Raise `ValueError` when the ``[tool.incremental]`` section contains
keys other than ``"name"``
N)z[tool.incremental]
foo = false
z-[tool.incremental]
name = "OK"
other = false
r3r.s& r�!test_toolIncrementalUnexpecteKeys�=VerifyPyprojectDotTomlTests.test_toolIncrementalUnexpecteKeyscs&��

�D�
���j�$�.�.�$�?�	
rc��\VP44pVR,R,pVPRR7R
FCpVPW1R,R7pVP	V\RR\
V4R74KE	R	#)z�
The package has opted-in to Incremental version management when
the ``[tool.incremental]`` section is a dict. The project name
is taken from ``[tool.incremental] name`` or ``[project] name``.
�src�fooT��parentsr&�r�Foo��opt_in�packagerN)z*[project]
name = "Foo"
[tool.incremental]
z [tool.incremental]
name = "Foo"
�rr�mkdirr#�assertEqualrr)r�root�pkgr�configs&    r�test_setuptoolsOptIn�0VerifyPyprojectDotTomlTests.test_setuptoolsOptInnsz���D�K�K�M�"���U�l�U�"���	�	�$�	��
�D��^�^�D�6F�/F�^�G�F�����"��!��S���
�

rc��\VP44pVP4VP\R4;_uu_4VPRVR,R7RRR4R# +'giR#;i)z=
Raise `ValueError` when the package root can't be resolved.
z$Can't find the directory of project z[project]
name = "foo"
r&rGN)rrrMr8r4r#)rrOs& r�test_packagePathRequired�4VerifyPyprojectDotTomlTests.test_packagePathRequired�s^���D�K�K�M�"���
�
��
�
#�
#�J�0V�
W�
W��N�N�+��,�,�
�
�X�
W�
W�
W�s�A-�-A>	c
��\VP44pVR,R,pVPRR7VPRVR,R7pVP	V\RR	\
V4R
74R#)zl
The ``[tool.incremental]`` table is not strictly required, but its
``opt_in=False`` indicates its absence.
rCrDTrEz[project]
name = "Foo"
r&rGFrHrINrL)rrOrPrQs&   r�test_noToolIncrementalSection�9VerifyPyprojectDotTomlTests.test_noToolIncrementalSection�sw��
�D�K�K�M�"���U�l�U�"���	�	�$�	�����'��(�(� �
��
	
���������X�
�	
r�)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r#r+r/r5r:r=r@rRrUrX�__static_attributes__�__classdictcell__)rs@rr
r
sP����9��;?���8I�;�@�
%�@�	@��2�
�
rr
)r_r'�typingrrr�pathlibr�twisted.trial.unittestr�incrementalrrr
rZrr�<module>rfs*��8�	�(�(��+�@�[
�(�[
r

Youez - 2016 - github.com/yon3zu
LinuXploit