Changeset - 97b60b44f50d
[Not reviewed]
0 2 0
Ben Sturmfels (bsturmfels) - 23 days ago 2024-05-10 02:12:04
ben@sturm.com.au
Add some basic 200 OK smoke tests for key pages
2 files changed with 16 insertions and 1 deletions:
0 comments (0 inline, 0 general)
TODO.md
Show inline comments
...
 
@@ -5,11 +5,11 @@
 
* ask Denver about why so many license files
 
* serve a 400 in Apache for a hostname we don't explicitly support
 
* replace `internalNavigate` with inline flexbox layout
 
* add tests for main pages returning 200
 

	
 

	
 
# Done
 

	
 
* add tests for main pages returning 200
 
* move `SITE_FUNDGOAL` configuration to `settings.py`
 
* move `sponsors.py` and `sponsors.html` into `supporters` app
 
* use `<detail>` elements for supporter page hidden sections, rather than
conservancy/tests.py
Show inline comments
...
 
@@ -19,7 +19,22 @@ def create_fundraising_goal():
 
        fundraiser_endtime=datetime.datetime(2000, 1, 1)
 
    )
 

	
 
# Simple smoke tests to make sure the essential pages on the site are working.
 
get_200_ok_test_data = [
 
    '/',
 
    '/news/',
 
    '/blog/',
 
    '/sustainer/',
 
]
 

	
 
@pytest.mark.parametrize('url', get_200_ok_test_data)
 
@pytest.mark.django_db
 
def test_get_200_ok(url, client):
 
    response = client.get(url)
 
    assert response.status_code == 200
 

	
 

	
 
# Tests for the template/file content serving functionality.
 
@pytest.mark.django_db
 
def test_about_page_served(rf):
 
    create_fundraising_goal()
0 comments (0 inline, 0 general)