Skip to content

Add random dataframe creation for unit tests

Latest
Compare
Choose a tag to compare
@machielg machielg released this 18 Nov 12:11
· 1 commit to master since this release

Usage

def test_something(self):
   df = self.randomDF()
   df = self.randomDF("a", "b")
   self.assertEqual(["a", "b"], df.colums)
   df = self.randomDF("a:bigint")
   self.assertEqual(LongType(), df.fields[0].dataType)