Skip to content

Commit

Permalink
Use univers NugetVersion instead of vendored nuget version for testing
Browse files Browse the repository at this point in the history
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
  • Loading branch information
TG1999 committed Apr 27, 2022
1 parent b026a9c commit 27a3da3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_nuget.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# https://github.com/NuGet/NuGet.Client/blob/dev/test/NuGet.Core.Tests/NuGet.Versioning.Test/VersionComparerTests.cs

import unittest
from univers import nuget
from univers.versions import NugetVersion


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

def check_order(self, comparison, first, second):
"""Check order."""
comparison(nuget.Version.from_string(first), nuget.Version.from_string(second))
comparison(NugetVersion.build_value(first), NugetVersion.build_value(second))

def test_equals(self):
"""Test version equals."""
Expand Down

0 comments on commit 27a3da3

Please sign in to comment.