aboutsummaryrefslogtreecommitdiff
path: root/tests/fixtures.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fixtures.py')
-rw-r--r--tests/fixtures.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/fixtures.py b/tests/fixtures.py
index bc783847..6aab645d 100644
--- a/tests/fixtures.py
+++ b/tests/fixtures.py
@@ -17,11 +17,10 @@ def populate_db(db):
db.session.add(feed)
db.session.commit()
for article in ['article1', 'article2', 'article3']:
- article = Article(entry_id=article, link=article,
+ entry = "%s %s %s" % (user.nickname, feed.title, article)
+ article = Article(entry_id=entry, link=article,
feed_id=feed.id, user_id=user.id,
- title="%r %r %r" % (user.nickname,
- feed.title, article),
- content=article)
+ title=entry, content=article)
db.session.add(article)
db.session.commit()
bgstack15