Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/NREL/pysam into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
dguittet committed Mar 14, 2024
2 parents 1d2f4f7 + e66e490 commit c0b60e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_pysam_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,13 @@ def test_adjustment_factors():
adj.sf_timeindex = [0]
adj.export()

@pytest.mark.parametrize("execution_number", range(150))
def test_pyssc(execution_number):
def test_pyssc():
var = ssc.var_create()
ssc.var_set_value(var, 0)
assert int(ssc.var_get_number(var)) == 0
test_dat = ssc.data_create()
ssc.data_set_var(test_dat, b"test", var)
assert ssc.data_get_number(test_dat, b"test") == 0
assert ssc.data_get_number(test_dat, b"test") == pytest.approx(0)

var = ssc.var_create()
ssc.var_set_value(var, 'zero')
Expand Down

0 comments on commit c0b60e4

Please sign in to comment.