
    ZTh                     H    d dl Z d dlmZ d dlmZ d dlmZ d Zd Zd Z	d Z
y)	    N)SiftAPIDeprecationWarning)YamlConfigError)channelc                      t        j                  d       t        j                  t        d      5  t        j                  d       d d d        y # 1 sw Y   y xY w)NfoozExpected '<str>'match   )r   _validate_channel_anchorpytestraisesr        _/home/www/backend.miabetepe.com/venv/lib/python3.12/site-packages/sift_py/yaml/_channel_test.pytest__validate_channel_anchorr      sB    $$U+	.@	A ,((+, , ,s   AAc                  T   t        j                  ddd       t        j                  t        d      5  t        j                  ddd       d d d        t        j                  t        d      5  t        j                  ddd       d d d        y # 1 sw Y   FxY w# 1 sw Y   y xY w)	Nr   r   namekeyz*Expected 'key' to be <int> but it is <str>r   foobar+Expected 'name' to be <str> but it is <int>{   )r   _validate_enum_typer   r   r   r   r   r   test__validate_enum_typer      s    	
 
.Z	[ 
##	

 
.[	\ 
##	

 

 

 
s   B0BBB'c                     t        j                  dddd       t        j                  t        d      5  t        j                  dddd       d d d        t        j                  t        d      5  t        j                  dddd       d d d        t        j                  t        d	      5  t        j                  ddd
d       d d d        y # 1 sw Y   xY w# 1 sw Y   SxY w# 1 sw Y   y xY w)Nheaterr   r
   r   index	bit_countr   r   z,Expected 'index' to be <int> but it is <str>r   z0Expected 'bit_count' to be <int> but it is <str>r   )r   _validate_bit_field_elementr   r   r   r   r   r    test__validate_bit_field_elementr!   (   s    ''	
 
.[	\ 
++	

 
.\	] 
++ !	

 
.`	a 
++ "	

 
%
 

 

 
s#   C2C/C*CC'*C3c                  >   t        j                  dddd       t        j                  t        d      5  t        j                  ddd       d d d        t        j                  t        d	      5  t        j                  dd
ddd       d d d        t        j                  t        d      5  t        j                  ddddg dd       d d d        t        j                  t        d      5  t        j
                  t        d      5  t        j                  dddi dd       d d d        d d d        t        j                  t        d      5  t        j
                  t        d      5  t        j                  dddddddddgd       d d d        d d d        t        j
                  t        d      5  t        j                  dddddddddgd       d d d        t        j                  t        d      5  t        j
                  t        d      5  t        j                  ddddddddgd       d d d        d d d        t        j
                  t        d      5  t        j                  ddddddddgd       d d d        y # 1 sw Y   GxY w# 1 sw Y   xY w# 1 sw Y   xY w# 1 sw Y   xY w# 1 sw Y   xY w# 1 sw Y   ExY w# 1 sw Y   JxY w# 1 sw Y   xY w# 1 sw Y   xY w# 1 sw Y   xY w# 1 sw Y   y xY w)NforcedoubleN)r   	data_typeunitzExpected 'data_type' to ber   dubble)r   r&   z2Expected 'description' to be <str> but it is <int>i)#  )r   descriptionr&   r'   z,Expected 'unit' to be <str> but it is <list>zuse the forcemotor)      r
   )r   r)   r&   	componentr'   z1Expected 'component' to be <str> but it is <dict>r-   z(should not have 'bit_field_elements' setheatr   r
   r   )r   r)   r&   r-   r'   bit_field_elements	bit_fieldz should not have 'enum_types' setr   )r   r)   r&   r-   r'   
enum_typesenum)r   _validate_channelr   r   r   warnsr   r   r   r   test__validate_channelr5   M   s   !	
 
.J	K 
!!%	

 
.b	c 
!!#%		

 
.\	] 
 	!!.%$!	

 
.a	b 
\\3;G 		%%##2!)!#		
 
.X	Y \\3;G 
	%%##2!)!(4:QUV+W*X	
	 
/{	C 

!!.($06QR'S&T		


 
.P	Q \\3;G 
	%%##2!)!(,21#=">	
	 
/{	C 

!!.#$(.q9:		


 

a
 

 

 
		 		
 

	 
	 

 


	 
	 

 

s   J1J /J-0KJ:(KK!/"KK!<"K.L!K;>L)!LJ J*-J7:K	?KKK	K!!K+.K8;L	 LLL)r   sift_py.errorr   #sift_py.ingestion.config.yaml.errorr   sift_py.yamlr   r   r   r!   r5   r   r   r   <module>r9      s'     3 ?  ,
2"
Jc
r   