Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
mdrachuk committed Sep 19, 2019
1 parent db9c1fe commit 6f88440
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions cv.py
Expand Up @@ -132,8 +132,6 @@ def _parse_version_type(parameters):
raise InvalidRequirements('--alpha, --beta and --rc cannot be combined')
version_type = VersionType.BETA
elif parameters.rc:
if any([parameters.alpha, parameters.beta]):
raise InvalidRequirements('--alpha, --beta and --rc cannot be combined')
version_type = VersionType.RC
else:
version_type = VersionType.RELEASE
Expand Down
2 changes: 1 addition & 1 deletion tests.py
Expand Up @@ -70,7 +70,7 @@ def test_restrict_invalid_combinations():
with pytest.raises(InvalidRequirements):
main(['test_modules.valid_release', '--beta', '--rc'])
with pytest.raises(InvalidRequirements):
main(['test_modules.valid_release', '--alpha', '--rc'])
main(['test_modules.valid_release', '--rc', '--alpha'])


def test_invalid_version_type():
Expand Down

0 comments on commit 6f88440

Please sign in to comment.