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'
......@@ -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.general_data ='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
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