Skip to content

Commit

Permalink
planet: tests require a real django model
Browse files Browse the repository at this point in the history
  • Loading branch information
jelly committed May 28, 2024
1 parent 929d2fe commit 7e14da1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion planet/tests/test_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ def command():

@pytest.fixture
def feed(db):
return Feed(title='test', website='http://archlinux.org',
feed = Feed.objects.create(title='test', website='http://archlinux.org',
website_rss='http://archlinux.org/feed.rss')
yield feed
feed.delete()


class MockParse:
Expand Down

0 comments on commit 7e14da1

Please sign in to comment.