
    ci                     B    S r SSKrSSKJs  Jr  SSKrSSKJ	r	  S r
S rg)zTests for settings validation.    N)RatingSettingsc                      [         R                  " [        5         [        SSS9  SSS5        g! , (       d  f       g= f)z2Fixed bucket mode requires a positive bucket size.fixedN)distance_bucket_modedistance_bucket_sizepytestraises
ValueErrorr        8/root/tipsharks/tipsharks-elo-api/tests/test_settings.py,test_distance_bucket_size_required_for_fixedr      s$    	z	"G$O 
#	"	"   /
=c                      [         R                  " [        5         [        SSS9  SSS5        g! , (       d  f       g= f)zRating max must be >= min.g      @g     p@)
rating_min
rating_maxNr   r   r   r   test_rating_bounds_validationr      s$    	z	"&V< 
#	"	"r   )__doc__builtins@py_builtins_pytest.assertion.rewrite	assertionrewrite
@pytest_arr	   packages.core.common.settingsr   r   r   r   r   r   <module>r      s    $    8P=r   