RSSAmplifier

Blogs on FlowFX · Oct 17, 2017

Test Django with Selenium, pytest and user authentication

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

When testing a Django app with Selenium , how do you authenticate the user and test pages that require to be logged in? Of course: StackOverflow has the answer . The following is the actual code that I use to make this work with pytest . It requires pytest-django . pytest fixtures In pytest everything is contained in neat test fixtures. Browser The first fixture provides a broser/webdriver…

Read on flowfx.de

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.