gemseo / formulations

bilevel_test_helper module

Provide base test class stub for testing bilevel also for GEMSEO plugins.

class gemseo.formulations.bilevel_test_helper.TestBilevelFormulationBase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Helper class for testing bilevel formulations.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

build_bilevel(**options)[source]
build_scenarios()[source]
classmethod setUpClass()[source]

Hook method for setting up class fixture before running tests in the class.

gemseo.formulations.bilevel_test_helper.build_system_scenario(disciplines, **options)[source]
Parameters

disciplines