h2integrate.core.test.test_feedstocks#
Tests for feedstock performance and cost models.
These tests validate the feedstock components that provide resource inputs to technologies, including natural gas, electricity, water, and other feedstock types.
Classes
|
Test cases for feedstock models. |
- class h2integrate.core.test.test_feedstocks.TestFeedstocks(methodName='runTest')#
Test cases for feedstock models.
- setUp()#
Set up test fixtures.
- tearDown()#
Clean up test files.
- create_basic_feedstock_config(feedstock_type='natural_gas', units='MMBtu', rated_capacity=100.0, price=4.2, annual_cost=0.0, start_up_cost=100000.0)#
Create a basic feedstock configuration for testing.
- test_single_feedstock_natural_gas()#
Test a single natural gas feedstock with basic parameters.
- test_multiple_same_type_feedstocks()#
Test multiple feedstocks of the same type with different parameters.
- test_multiple_different_type_feedstocks()#
Test feedstocks of different types (natural gas, electricity, water).
- test_variable_pricing()#
Test feedstock with variable pricing (array of prices).
- test_zero_cost_feedstock()#
Test feedstock with zero costs (free resource).
- _classSetupFailed = False#
- _class_cleanups = []#