Skip to content

Commit

Permalink
add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
oakbani committed Sep 27, 2019
1 parent a1925bf commit 1e4ace4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ def test_set_blocking_timeout(self, _):
project_config_manager.set_blocking_timeout(-4)
self.assertEqual(enums.ConfigManager.DEFAULT_BLOCKING_TIMEOUT, project_config_manager.blocking_timeout)

# Assert that blocking_timeout can be set to 0.
project_config_manager.set_blocking_timeout(0)
self.assertIs(0, project_config_manager.blocking_timeout)

# Assert that if no blocking_timeout is provided, it is set to default value.
project_config_manager.set_blocking_timeout(None)
self.assertEqual(enums.ConfigManager.DEFAULT_BLOCKING_TIMEOUT, project_config_manager.blocking_timeout)
Expand Down

0 comments on commit 1e4ace4

Please sign in to comment.