From f0804091e3dca1d422a6ba4594967168fb7df537 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 14 Jun 2024 10:48:14 -0500 Subject: Commit missing test. --- tests/qc_app/test_expression_data_pages.py | 93 ++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 tests/qc_app/test_expression_data_pages.py (limited to 'tests/qc_app') diff --git a/tests/qc_app/test_expression_data_pages.py b/tests/qc_app/test_expression_data_pages.py new file mode 100644 index 0000000..6e073fb --- /dev/null +++ b/tests/qc_app/test_expression_data_pages.py @@ -0,0 +1,93 @@ +"""Test expression data path""" +import pytest + +from tests.conftest import uploadable_file_object + +def test_basic_elements_present_in_index_page(client): + """ + GIVEN: A flask application testing client + WHEN: the index page is requested with the "GET" method and no data + THEN: verify that the response contains error notifications + """ + response = client.get("/upload") + assert response.status_code == 200 + ## form present + assert b'
' in response.data + ## filetype elements + assert b'