Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

reduction_viewer views tests #192

Open
Pasarus opened this issue Aug 18, 2022 · 0 comments
Open

reduction_viewer views tests #192

Pasarus opened this issue Aug 18, 2022 · 0 comments

Comments

@Pasarus
Copy link
Member

Pasarus commented Aug 18, 2022

Issue raised by: [developer]

This is now possible in the autoreduce-frontend repository.

What?
Behaviour of reduction_viewer.views is largely untested

The autoreduce_webapp/reduction_viewer/tests/test_view.py file contains an example test that 'uses' the web app - it logs in and then goes onto the index page, then checks if it was redirected to /overview as expected

To do

More tests that check the behaviour of functions in reduction_viewer.views should be added.

Once the requests are done, something like BeautifulSoup can be used to parse the HTML and look for specific output or structures present - thus verifying that we sent the correct response to an action.

How to test the issue is resolved
All tests should pass locally and on CI

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant