Skip to content

Commit

Permalink
Functional packages tests are Python 3 ready
Browse files Browse the repository at this point in the history
Tests in functional/test_packages.py works in Python 3 with the
new querystring validator from cornice.validators module.

Signed-off-by: Lumir Balhar <[email protected]>
  • Loading branch information
frenzymadness authored and bowlofeggs committed Jun 1, 2018
1 parent f9900c0 commit e0d129b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions bodhi/tests/server/functional/test_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,13 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

import unittest

import six

from bodhi.server.models import (
RpmPackage,
)
from bodhi.tests.server import base


class TestRpmPackagesService(base.BaseTestCase):
@unittest.skipIf(six.PY3, 'Not working with Python 3 yet')
def test_basic_json(self):
""" Test querying with no arguments... """
self.db.add(RpmPackage(name=u'a_second_package'))
Expand All @@ -34,7 +28,6 @@ def test_basic_json(self):
body = resp.json_body
self.assertEquals(len(body['packages']), 2)

@unittest.skipIf(six.PY3, 'Not working with Python 3 yet')
def test_filter_by_name(self):
""" Test that filtering by name returns one package and not the other.
"""
Expand All @@ -44,7 +37,6 @@ def test_filter_by_name(self):
body = resp.json_body
self.assertEquals(len(body['packages']), 1)

@unittest.skipIf(six.PY3, 'Not working with Python 3 yet')
def test_filter_by_like(self):
""" Test that filtering by like returns one package and not the other.
"""
Expand All @@ -54,7 +46,6 @@ def test_filter_by_like(self):
body = resp.json_body
self.assertEquals(len(body['packages']), 1)

@unittest.skipIf(six.PY3, 'Not working with Python 3 yet')
def test_filter_by_search(self):
""" Test filtering by search
"""
Expand Down

0 comments on commit e0d129b

Please sign in to comment.