-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
58 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ | |
/build/ | ||
/dev/ | ||
/bin/ | ||
/dist/ | ||
/dist/ | ||
*.pyc | ||
*pytest_cache |
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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"Quickstart_Guide_Chiller":{ | ||
"eqp_type":"Chiller", | ||
"compressor_type":"screw", | ||
"condenser_type":"water", | ||
"compressor_speed":"constant", | ||
"ref_cap":300, | ||
"ref_cap_unit":"ton", | ||
"full_eff":0.61, | ||
"full_eff_unit":"kw/ton", | ||
"part_eff":0.52, | ||
"part_eff_unit":"kw/ton", | ||
"sim_engine":"energyplus", | ||
"model":"ect_lwt", | ||
"do":{ | ||
"generate_set_of_curves":{ | ||
"vars":[ | ||
"eir-f-plr" | ||
], | ||
"method":"nearest_neighbor", | ||
"tol":0.05, | ||
"export_path":"./", | ||
"export_format":"json", | ||
"export_name":"Quickstart_Guide_Chiller", | ||
"random_seed":1 | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import click, logging | ||
from click.testing import CliRunner | ||
from copper.cli import run | ||
|
||
|
||
def test_cli_incorrect_file(): | ||
runner = CliRunner() | ||
result = runner.invoke(run, ["test"]) | ||
assert "'test': No such file or directory" in result.output | ||
|
||
|
||
def test_cli_correct(caplog): | ||
caplog.set_level(logging.INFO) | ||
runner = CliRunner() | ||
result = runner.invoke(run, ["./tests/data/cli_input_file.json"]) | ||
assert "Target met after 13 generations." |