test_prep_material_valuation
test_prep_material_valuation_bwtar_filtering(spark)
¶
Test prep_material_valuation with BWTAR filtering.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
spark
|
SparkSession
|
Spark session object. |
required |
Source code in code\tests\test_local_material\test_prep_material_valuation.py
test_prep_material_valuation_complex_scenario(spark)
¶
Test combination of filtering, row numbering and deduplication.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
spark
|
SparkSession
|
Spark session object. |
required |
Source code in code\tests\test_local_material\test_prep_material_valuation.py
test_prep_material_valuation_deduplication(spark)
¶
Test deduplication of identical rows.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
spark
|
SparkSession
|
Spark session object. |
required |
Source code in code\tests\test_local_material\test_prep_material_valuation.py
test_prep_material_valuation_empty_df(spark)
¶
Test prep_material_valuation with empty DataFrame.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
spark
|
SparkSession
|
Spark session object. |
required |
Source code in code\tests\test_local_material\test_prep_material_valuation.py
test_prep_material_valuation_invalid_input()
¶
Test prep_material_valuation with invalid input type.
test_prep_material_valuation_lvorm_filtering(spark)
¶
Test prep_material_valuation with LVORM filtering.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
spark
|
SparkSession
|
Spark session object. |
required |
Source code in code\tests\test_local_material\test_prep_material_valuation.py
test_prep_material_valuation_row_numbering(spark)
¶
Test row numbering logic based on LAEPR ordering.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
spark
|
SparkSession
|
Spark session object. |
required |
Source code in code\tests\test_local_material\test_prep_material_valuation.py
test_prep_material_valuation_valid_input(spark)
¶
Test prep_material_valuation with valid input data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
spark
|
SparkSession
|
Spark session object. |
required |