diff --git a/jwql/tests/test_website.py b/jwql/tests/test_website.py deleted file mode 100644 index bf68a24a6..000000000 --- a/jwql/tests/test_website.py +++ /dev/null @@ -1,73 +0,0 @@ -#!/usr/bin/env python -"""Tests for the ``jwql`` web application. - -Authors -------- - - - Lauren Chambers - -Use ---- - - These tests can be run via the command line (omit the ``-s`` to - suppress verbose output to ``stdout``): - - :: - - pytest -s test_website.py -""" - -import sys -sys.path.append("../..") - -import pytest - -from jwql.utils.utils import JWST_INSTRUMENTS -from website.apps.jwql.data_containers import ( - get_acknowledgements, get_dashboard_components, - get_filenames_by_instrument, get_header_info -) - - -def test_acknowledgements(): - """Checks that an acknowledgements list exists and has content.""" - - acknowledgements = get_acknowledgements() - assert isinstance(acknowledgements, list), 'Acknowledgements in invalid form' - assert len(acknowledgements) > 0, 'No acknowledgements listed' - - -def test_dashboard(): - """Checks that there are dashboard components to display. Also - checks that the components have required HTML components. - """ - - dashboard_components = get_dashboard_components() - assert len(dashboard_components) > 0, 'No dashboard components found' - - for monitor_key in dashboard_components.keys(): - for plot_key in dashboard_components[monitor_key]: - div, script = dashboard_components[monitor_key][plot_key] - assert '
' in div - assert '