testing
Testing module
Testing framework main functionalities.
Attributes
console
module-attribute
Classes
Functions:
test_session
test_session(params: TestParams, sensor: str, test_name: str, output_dir: Path, graphs: bool, cli: bool) -> bool
Executing SCT single test using API interface.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
params
|
TestParams
|
sct input params for the current test |
required |
sensor
|
str
|
sensor name |
required |
test_name
|
str
|
name of the test |
required |
output_dir
|
Path
|
output directory where to save the results |
required |
graphs
|
bool
|
flag to enable graphs generation |
required |
cli
|
bool
|
flag to enable cli usage instead of api |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True if passed, else False |
run_tests
run_tests(registry_path: str | Path, output_dir: str | Path, graphs: bool = False, cli: bool = False) -> dict
Running all the SCT Integration Tests from input registry
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
registry_path
|
str | Path
|
Path to the integration tests registry .json |
required |
output_dir
|
str | Path
|
Path to the output directory where to save results |
required |
graphs
|
bool
|
flag to enable graphs generation, by default False |
False
|
cli
|
bool
|
flag to enable cli usage instead of api, by default False |
False
|
summary_results
print_dict_as_table
Printing summary results by sensor as a Rich Table.
Supported Analyses Executor
Attributes
Classes
Functions:
execute_analysis_test
execute_analysis_test(test_params: TestParams, output_dir: Path, graphs: bool = False, cli: bool = False) -> None
Analysis execution function for testing module.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
test_params
|
TestParams
|
test parameters |
required |
output_dir
|
Path
|
output directory |
required |
graphs
|
bool
|
flag to enable graphs generation, by default False |
False
|
cli
|
bool
|
flag to enable cli usage instead of api, by default False |
False
|
Raises:
| Type | Description |
|---|---|
ValueError
|
unsupported analysis type |
SCT Testing - Common Utilities
Attributes
Classes
TestOutput
dataclass
Test output definition
Attributes
Methods:
ReferenceOutput
dataclass
Reference output definition
Attributes
Methods:
TestParams
dataclass
Attributes
reference_output
class-attribute
instance-attribute
external_corrections_product
class-attribute
instance-attribute
Methods:
__init__
__init__(analysis: str | None = None, product: Path | list[Path] | None = None, config: Path | None = None, targets: Path | None = None, external_orbit: Path | None = None, antenna_pattern: Path | None = None, reference_output: ReferenceOutput | None = None, external_corrections_product: Path | None = None, ionospheric_maps: Path | None = None, tropospheric_maps: Path | None = None) -> None
from_dict
classmethod
Composing TestParams dataclass from config dict.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arg
|
dict
|
input dictionary |
required |
Returns:
| Type | Description |
|---|---|
TestParams
|
dataclass |