Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1 

2import numpy as np 

3from sdc_etl_libs.api_helpers.apis.Google.EnhancedConversionAlphaAPI import \ 

4 EnhancedConversionAlphaAPI 

5 

6def test_validate_nan_value(): 

7 """ 

8 Validate a value and change any nan value by None value. 

9 """ 

10 assert EnhancedConversionAlphaAPI._validate_nan_value("3") == "3" 

11 assert EnhancedConversionAlphaAPI._validate_nan_value(4) == 4 

12 assert EnhancedConversionAlphaAPI._validate_nan_value(np.nan) is None