Add Docker-executed pytest suite with >90% coverage
This commit is contained in:
8
apps/blog/tests/test_feeds.py
Normal file
8
apps/blog/tests/test_feeds.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_feed_endpoint(client):
|
||||
resp = client.get("/feed/")
|
||||
assert resp.status_code == 200
|
||||
assert resp["Content-Type"].startswith("application/rss+xml")
|
||||
Reference in New Issue
Block a user