Skip to content

Commit

Permalink
fix the right test
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Feb 24, 2024
1 parent e3a717f commit 9f5c6f7
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions pyanalyze/test_deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ class TestStub(TestNameCheckVisitorBase):
@assert_passes()
def test(self):
def capybara():
from _pyanalyze_tests.deprecated import (
DeprecatedCapybara, # E: deprecated
deprecated_function, # E: deprecated
deprecated_overload,
)
print("keep")
from _pyanalyze_tests.deprecated import DeprecatedCapybara # E: deprecated

print("these imports")
from _pyanalyze_tests.deprecated import deprecated_function # E: deprecated

print("separate")
from _pyanalyze_tests.deprecated import deprecated_overload

deprecated_overload(1) # E: deprecated
deprecated_overload("x")
Expand All @@ -25,14 +28,11 @@ def capybara():
@assert_passes()
def test_multiline_import(self):
def capybara():
print("keep")
from _pyanalyze_tests.deprecated import DeprecatedCapybara # E: deprecated

print("these imports")
from _pyanalyze_tests.deprecated import deprecated_function # E: deprecated

print("separate")
from _pyanalyze_tests.deprecated import deprecated_overload
from _pyanalyze_tests.deprecated import (
DeprecatedCapybara, # E: deprecated
deprecated_function, # E: deprecated
deprecated_overload,
)

return [deprecated_function, deprecated_overload, DeprecatedCapybara]

Expand Down

0 comments on commit 9f5c6f7

Please sign in to comment.