-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
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
separate List, Set and Dict check for In and NotIn #132
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM besides some missing not
's
|
||
@pytest.mark.parametrize(*e_eval) | ||
def test_RestrictingNodeTransformer__visit_NotIn_Dict(e_eval): | ||
"""It allows `in` expressions.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be not in
.
|
||
@pytest.mark.parametrize(*e_eval) | ||
def test_RestrictingNodeTransformer__visit_NotIn_Set(e_eval): | ||
"""It allows `in` expressions.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It allows not in
"""It allows `in` expressions.""" | ||
assert e_eval('2 in [1, 2, 3]') is True | ||
|
||
|
||
@pytest.mark.parametrize(*e_eval) | ||
def test_RestrictingNodeTransformer__visit_NotIn__1(e_eval): | ||
def test_RestrictingNodeTransformer__visit_NotIn_List(e_eval): | ||
"""It allows `in` expressions.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It allows not in
.
this partially solves issue #113