Commit 23e3e58e authored by Raphaël Hertzog's avatar Raphaël Hertzog

Multiple fixes to test that were failing with PostgreSQL

parent 65ed7017
......@@ -197,7 +197,7 @@ class NewsFeedTests(TestCase):
def test_news_feed_filters_out_control_characters(self):
content = ('This is a test entry with control chars\n'
'\x00\x01\x08 \x0B\x0C \x0E\x1F')
'\x01\x08 \x0B\x0C \x0E\x1F')
title = 'This is a title with control chars \x01'
News.objects.create(
title=title,
......
......@@ -120,7 +120,7 @@ class GeneralInformationTableFieldTests(TestCase):
class VcsTableFieldTests(TestCase):
def setUp(self):
self.package = create_source_package_with_data('dummy-package')
self.package.general_data = self.package.data.all()
self.package.general_data = self.package.data.filter(key='general')
self.field = VcsTableField()
def test_field_context(self):
......
......@@ -1257,7 +1257,7 @@ class ProcessRepositoryUpdatesTests(TestCase):
def test_compute_known_packages(self):
srcpkg = self.create_source_package(repository='repo')
repository = srcpkg.repository_entries.first()
repository = srcpkg.repository_entries.first().repository
self.task.execute() # Updates processed list
self.task.compute_known_packages()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment