Skip to content

How to make a test case as precondition outside testconf.py #1

@phatle1

Description

@phatle1

Hi sir,
Hope you are doing well, appreciate your help here

is it possible to make a test case as a precondition by using @pytest.fixture outside the conftest.py?
context: I want to login and logout before and after every single test case, I have a test_credentials.py which have test_login and test_logout, and I want to make these cases as pre and post condition.
Once again, thanks for your support

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions