diff --git a/React Deployed Project b/React Deployed Project new file mode 100644 index 0000000..864996d --- /dev/null +++ b/React Deployed Project @@ -0,0 +1 @@ +https://quizzyappp.netlify.app/ diff --git a/Screenshot (649).png b/Screenshot (649).png new file mode 100644 index 0000000..87dbbb8 Binary files /dev/null and b/Screenshot (649).png differ diff --git a/Screenshot (650).png b/Screenshot (650).png new file mode 100644 index 0000000..7eec06a Binary files /dev/null and b/Screenshot (650).png differ diff --git a/Screenshot (651).png b/Screenshot (651).png new file mode 100644 index 0000000..920ea03 Binary files /dev/null and b/Screenshot (651).png differ diff --git a/Screenshot (652).png b/Screenshot (652).png new file mode 100644 index 0000000..9734f9c Binary files /dev/null and b/Screenshot (652).png differ diff --git a/tests/test_views.py b/tests/test_views.py new file mode 100644 index 0000000..c7a80d1 --- /dev/null +++ b/tests/test_views.py @@ -0,0 +1,25 @@ +import pytest +from your_application import create_app + +@pytest.fixture +def app(): + app = create_app() # Create the Flask app + app.config['TESTING'] = True # Set testing mode to True + yield app + +@pytest.fixture +def client(app): + return app.test_client() + +def test_index_route(client): + response = client.get('/') + assert response.status_code == 200 + assert b"Welcome to the Blog" in response.data + +def test_show_posts_route(client): + response = client.get('/posts') + assert response.status_code == 200 + + + +