Skip to content

Commit

Permalink
Removed redundant test cases for set_config
Browse files Browse the repository at this point in the history
  • Loading branch information
FirdausChoudhury committed Nov 13, 2023
1 parent 981db42 commit 4783dd6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions nbs/00_utils.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -809,12 +809,7 @@
"set_config()\n",
"assert get_config().rng_reserve_size == 2 and get_config().global_seed == 234\n",
"set_config(lol = 80)\n",
"assert get_config().rng_reserve_size == 2 and get_config().global_seed == 234\n",
"#Tests for invalid inputs\n",
"test_fail(set_config, kwargs={'rng_reserve_size': -1}, contains='must be non-negative')\n",
"test_fail(set_config, kwargs={'rng_reserve_size': 22.7}, contains='must be an integer')\n",
"test_fail(set_config, kwargs={'global_seed': -4}, contains='must be non-negative')\n",
"test_fail(set_config, kwargs={'global_seed': 3.14}, contains='must be an integer')"
"assert get_config().rng_reserve_size == 2 and get_config().global_seed == 234"
]
}
],
Expand Down

0 comments on commit 4783dd6

Please sign in to comment.