Skip to content

Context do not split with py.test #91

Description

@item4

I will show you real my codes because I do not know how I can reproduce this bugs in simple case.

1. order of test

If I change order of test_too_many_login_tried and test_invalid_password each other, this test will be broken because test_too_many_login_tried's 'https://www.secure.pixiv.net/login.php' access must going to 'https://example.com/' in test test_invalid_password.

2. toss and toss and toss again

In test_login_valid, I must insert this.

     responses.add(**{
            'method': responses.POST,
            'url': 'http://example.com',
            'body': '????',
            'content_type': 'text/html; charset=utf-8',
            'status': 301,
            'adding_headers': {
                'Location': 'http://www.pixiv.net/'
            },
        })

If I remove it, test will be broken. 'http://example.com' mentioned in before test, cli_test.py


What the hell?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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