Skip to content

Commit

Permalink
Tried to test the exception but the test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
saroele committed May 14, 2018
1 parent bbfbee4 commit 996134e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions opengrid/tests/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ def test_init(self):
mvlr.do_analysis()
self.assertTrue(hasattr(mvlr, 'list_of_fits'))

# def test_raises(self):
# df = datasets.get('gas_2016_hour')
# df_month = df.resample('MS').sum()
# mvlr = og.MultiVarLinReg(df_month, '313b', p_max=0.04)
# self.assertRaises(UnboundLocalError, mvlr.fit)
# self.assertRaises(UnboundLocalError, mvlr.list_of_fits)

def test_strange_names(self):
df = datasets.get('gas_2016_hour')
df_month = df.resample('MS').sum()
Expand Down

0 comments on commit 996134e

Please sign in to comment.