-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use runpy instead of exec for script tests
- Loading branch information
1 parent
aa8492c
commit 5beb491
Showing
4 changed files
with
25 additions
and
21 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
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
13 changes: 13 additions & 0 deletions
13
pvfit/modeling/dc/single_diode/model/demos/using_ghi_dni_dhi_ambient_temp_test.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
""" | ||
PVfit testing: Using meteorological (MET) station data in single-diode model (SDM). | ||
Copyright 2023 Intelligent Measurement Systems LLC | ||
""" | ||
|
||
import os | ||
import runpy | ||
|
||
|
||
def test_using_ghi_dni_dhi_ambient_temp_script(): | ||
"""Test that F and T_degC from MET data script runs without error.""" | ||
runpy.run_path(os.path.abspath(__file__).replace("_test.py", ".py")) |