Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Test] Add more test cases #45

Merged
merged 16 commits into from
Jan 29, 2022
Next Next commit
update: test_load_optimizers_invalid
  • Loading branch information
kozistr committed Jan 29, 2022
commit 984b807721b772d40a2647e77f7494beedfe987c
5 changes: 1 addition & 4 deletions tests/test_load_optimizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,5 @@ def test_load_optimizers_valid(valid_optimizer_names):

@pytest.mark.parametrize('invalid_optimizer_names', INVALID_OPTIMIZER_NAMES)
def test_load_optimizers_invalid(invalid_optimizer_names):
try:
with pytest.raises(NotImplementedError):
load_optimizers(invalid_optimizer_names)
except NotImplementedError:
return True
return False