Skip to content

Commit 27a3da3

Browse files
committed
Use univers NugetVersion instead of vendored nuget version for testing
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent b026a9c commit 27a3da3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_nuget.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# https://github.com/NuGet/NuGet.Client/blob/dev/test/NuGet.Core.Tests/NuGet.Versioning.Test/VersionComparerTests.cs
1919

2020
import unittest
21-
from univers import nuget
21+
from univers.versions import NugetVersion
2222

2323

2424
class NuGetTest(unittest.TestCase):
@@ -29,7 +29,7 @@ def setUp(self):
2929

3030
def check_order(self, comparison, first, second):
3131
"""Check order."""
32-
comparison(nuget.Version.from_string(first), nuget.Version.from_string(second))
32+
comparison(NugetVersion.build_value(first), NugetVersion.build_value(second))
3333

3434
def test_equals(self):
3535
"""Test version equals."""

0 commit comments

Comments
 (0)