Skip to content

Commit

Permalink
Add test case (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Funke committed Oct 10, 2024
1 parent 760f1f0 commit e867c4c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/fixers/test_versioned_branches.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,20 @@ def test_current_version_gt():
foo()
""",
)

def test_comment_old_version_lt():
check_transformed(
"""\
import django
if django.VERSION < (3, 2):
foo()
# test comment
""",
"""\
import django
# test comment
""",
)

0 comments on commit e867c4c

Please sign in to comment.