-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Create iam.py, consistent naming for IAM functions #783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
73f4638
a89cc01
0f1c90c
0a55b54
8505a0d
f48742c
1bcde31
c51bc08
5e01712
e5bebe1
549fc2c
42210e4
1475db6
006768d
c10af4c
b9e39ac
ab1fbbc
4dadd4b
7f14c95
9164592
2fe7396
3d6bcf5
64a6b3c
152ef7a
46db9d7
ea6fe81
2529351
f641cd0
f331949
ec723c6
cf998ea
23f2677
1e63f04
5fb7cc8
b43b28c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,12 +85,12 @@ def test_systemdef_dict(): | |
('martin_ruiz', {'a_r': 0.16}), | ||
]) | ||
def test_PVSystem_get_iam(mocker, iam_model, model_params): | ||
mocker.spy(_iam, iam_model) | ||
m = mocker.spy(_iam, iam_model) | ||
module_parameters = pd.Series(model_params) | ||
system = pvsystem.PVSystem(module_parameters=module_parameters) | ||
thetas = 1 | ||
iam = system.get_iam(thetas, iam_model=iam_model) | ||
_iam.ashrae.assert_called_once_with(thetas, **module_parameters) | ||
assert m.call_count == 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is a less stringent test than There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the mistake obvious in this? I can't see it. From the log it appears that the mock
|
||
assert iam < 1. | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest leaving this as a dict instead of converting to a Series.