-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 parent
33cccd3
commit 5af5061
Showing
1 changed file
with
36 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import pytest | ||
import pandas as pd | ||
from pynssp import load_simulated_ts, get_scenario1, get_scenario2 | ||
|
||
|
||
@pytest.fixture | ||
def simulated_ts(): | ||
return load_simulated_ts() | ||
|
||
|
||
@pytest.fixture | ||
def scenario1(): | ||
return get_scenario1() | ||
|
||
|
||
@pytest.fixture | ||
def scenario2(): | ||
return get_scenario2() | ||
|
||
|
||
def test_load_simulated_ts(simulated_ts): | ||
assert isinstance(simulated_ts, pd.DataFrame) | ||
assert len(simulated_ts) == 626 | ||
assert len(simulated_ts.columns) == 6 | ||
|
||
|
||
def test_get_scenario1(scenario1): | ||
assert isinstance(scenario1, pd.DataFrame) | ||
assert len(scenario1) == 313 | ||
assert len(scenario1.columns) == 6 | ||
|
||
|
||
def test_get_scenario2(scenario2): | ||
assert isinstance(scenario2, pd.DataFrame) | ||
assert len(scenario2) == 313 | ||
assert len(scenario2.columns) == 6 |