Skip to content

Commit

Permalink
Also removed test in test_naming until _check_name is refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
Casva committed Nov 4, 2018
1 parent 228188c commit 1f8bc65
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_visitors/test_ast/test_naming/test_naming.py
Expand Up @@ -142,6 +142,9 @@ def test_naming_correct(

assert_errors(visitor, [])

"""
Removed for now until _check_name gets refactored to
incorporate the new test
def test_long_variable_name(
assert_errors,
Expand All @@ -151,7 +154,7 @@ def test_long_variable_name(
default_options,
mode,
):
"""Ensures that long names are not allowed."""
Ensures that long names are not allowed.
long_name = 'incredibly_and_very_long_name_that_will_definitely_not_work'
tree = parse_ast_tree(mode(naming_template.format(long_name)))
Expand All @@ -160,3 +163,4 @@ def test_long_variable_name(
assert_errors(visitor, [TooLongNameViolation])
assert_error_text(visitor, long_name)
"""

0 comments on commit 1f8bc65

Please sign in to comment.