Skip to content

Commit

Permalink
Add some more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
HyukjinKwon committed Sep 17, 2019
1 parent dc022f2 commit cf28811
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions databricks/koalas/tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,11 @@ def test_namespace_access(self):
config.OptionError, "No such option", lambda: ks.options.compute.max)
self.assertRaisesRegex(
config.OptionError, "No such option", lambda: ks.options.max_rows1)

with self.assertRaisesRegex(config.OptionError, "No such option"):
ks.options.compute.max = 0
finally:
ks.reset_option("compute.max_rows")

def test_dir_options(self):
self.assertTrue("compute.max_rows" in dir(ks.options))

0 comments on commit cf28811

Please sign in to comment.