test_integration
sample_data(spark)
¶
Fixture to create sample data for tests.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
spark
|
SparkSession
|
The Spark session. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
dict[str, DataFrame]: Sample DataFrames for testing. |
Source code in code\tests\test_process_order\test_integration.py
test_integration_invalid_input(spark)
¶
Test integration function with invalid input.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
spark
|
SparkSession
|
The Spark session. |
required |
Source code in code\tests\test_process_order\test_integration.py
test_integration_required_dataframes(sample_data)
¶
Test integration function with all required DataFrames.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
spark
|
SparkSession
|
The Spark session. |
required |
sample_data
|
dict
|
Sample data for testing. |
required |
Source code in code\tests\test_process_order\test_integration.py
test_integration_with_optional_dataframe(sample_data)
¶
Test integration function with an optional DataFrame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
spark
|
SparkSession
|
The Spark session. |
required |
sample_data
|
dict
|
Sample data for testing. |
required |