-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
working with a couple of feed vars and model options
- Loading branch information
Showing
2 changed files
with
148 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 11 additions & 1 deletion
12
idaes/models_extra/temperature_swing_adsorption/tests/test_fixed_bed_tsa0d_ui.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
import pytest | ||
from ..fixed_bed_tsa0d_ui import export_to_ui | ||
from pyomo.environ import check_optimal_termination | ||
from ..fixed_bed_tsa0d_ui import export_to_ui, build | ||
|
||
|
||
@pytest.mark.component | ||
def test_export(): | ||
ui = export_to_ui() | ||
assert ui is not None | ||
|
||
|
||
@pytest.mark.component | ||
def test_solve_base(): | ||
ui = export_to_ui() | ||
ui.build(build_options=ui.fs_exp.build_options) | ||
r = ui.solve() | ||
assert check_optimal_termination(r) |