Skip to content

Commit

Permalink
pylint two last files
Browse files Browse the repository at this point in the history
  • Loading branch information
lmilbaum authored and Zlopez committed Jun 27, 2023
1 parent 140b21b commit 41cf40f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion anitya/tests/lib/versions/test_rpm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*- # pylint: disable=R0401
#
# Copyright © 2017 Red Hat, Inc.
#
Expand All @@ -17,6 +17,7 @@
# code or documentation are not subject to the GNU General Public
# License and may only be used or replicated with the express permission
# of Red Hat, Inc.
"""Test rpm"""
from __future__ import unicode_literals

import unittest
Expand All @@ -41,10 +42,12 @@ def test_identity_string(self):
self.assertEqual("RPM", rpm.RpmVersion.name)

def test_split_rc_prerelease_tag(self):
"""test_split_rc_prerelease_tag"""
result = rpm.RpmVersion.split_rc("1.8.23-alpha1")
self.assertEqual(("1.8.23", "alpha", "1"), result)

def test_split_rc_no_prerelease_tag(self):
"""test_split_rc_no_prerelease_tag"""
result = rpm.RpmVersion.split_rc("1.8.23")
self.assertEqual(("1.8.23", "", ""), result)

Expand Down
1 change: 1 addition & 0 deletions anitya/tests/lib/versions/test_semver.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# code or documentation are not subject to the GNU General Public
# License and may only be used or replicated with the express permission
# of Red Hat, Inc.
"""Test semver"""
import unittest

from anitya.lib.versions import semver
Expand Down

0 comments on commit 41cf40f

Please sign in to comment.