Skip to content

Commit

Permalink
Fix synthetic test
Browse files Browse the repository at this point in the history
Synthetic test typo
  • Loading branch information
morganjwilliams committed Jul 15, 2020
1 parent 9032567 commit 458bc07
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/util/util_synthetic.py
Expand Up @@ -6,15 +6,15 @@

class TestExampleSpiderData(unittest.TestCase):
def test_default(self):
nobs = 20
df = example_spider_data(nobs=nobs)
size = 20
df = example_spider_data(size=size)
self.assertIsInstance(df, pd.DataFrame)
self.assertIn("Eu", df.columns)

def test_norm_None(self):
nobs = 20
df = example_spider_data(nobs=nobs, norm_to=None)
df2 = example_spider_data(nobs=nobs)
size = 20
df = example_spider_data(size=size, norm_to=None)
df2 = example_spider_data(size=size)
self.assertIsInstance(df, pd.DataFrame)
self.assertIn("Eu", df.columns)
self.assertTrue(((df2["Cs"] / df["Cs"]) > 1).all())
Expand Down

0 comments on commit 458bc07

Please sign in to comment.