sentinelhub.testing_utils

Utility tools for writing unit tests for packages which rely on sentinelhub-py

sentinelhub.testing_utils.get_input_folder(current_file)[source]

Use fixtures if possible. This is meant only for test cases

Parameters

current_file (str) –

Return type

str

sentinelhub.testing_utils.get_output_folder(current_file)[source]

Use fixtures if possible. This is meant only for test cases

Parameters

current_file (str) –

Return type

str

sentinelhub.testing_utils.test_numpy_data(data=None, exp_shape=None, exp_dtype=None, exp_min=None, exp_max=None, exp_mean=None, exp_median=None, exp_std=None, delta=None)[source]

Validates basic statistics of data array

Parameters
Return type

None