-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed semantic version dependency. (#574)
* Removed semantic version dependency. * Fix mypy error for Python <= 3.8. * Add missing copyright header.
- Loading branch information
Showing
3 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
import pytest | ||
|
||
from theseus._version import lt_version | ||
|
||
|
||
def test_lt_version(): | ||
assert not lt_version("2.0.0", "0.4.0") | ||
assert not lt_version("1.13.0abcd", "0.4.0") | ||
assert not lt_version("0.4.1+yzx", "0.4.0") | ||
assert lt_version("1.13.0.1.2.3.4", "2.0.0") | ||
assert lt_version("1.13.0.1.2+abc", "2.0.0") | ||
with pytest.raises(ValueError): | ||
lt_version("1.2", "0.4.0") | ||
lt_version("1", "0.4.0") | ||
lt_version("1.", "0.4.0") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters