We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reset negated state after each assertion.
Assuming:
def test(): data = ['hello'] # Using the `assert` keyword assert isinstance(data, list) assert len(data) == 1 assert 'hello' in data assert 'world' not in data # Using expectations expect(data) \ .to.be_a_list() \ .and_to.have_len(1) \ .and_not.contain('world') \ .and_to.contain('hello') \
This will currently fail due to the chained functionally of .and_not.contain('world') maintaining the negated stated.
.and_not.contain('world')
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Reset negated state after each assertion.
Assuming:
This will currently fail due to the chained functionally of
.and_not.contain('world')
maintaining the negated stated.The text was updated successfully, but these errors were encountered: