-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add deprecation warning when importing legacy testing helpers (#…
…1838) * fix: Add deprecation warning when import legacy testing helpers * Document deprecation * Fix names * Test missing module attributes
- Loading branch information
1 parent
c444601
commit 52802e6
Showing
3 changed files
with
57 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
"""Test the plugin testing helpers.""" | ||
|
||
from __future__ import annotations | ||
|
||
import pytest | ||
|
||
|
||
def test_module_deprecations(): | ||
with pytest.deprecated_call(): | ||
from singer_sdk.testing import get_standard_tap_tests # noqa: F401 | ||
|
||
with pytest.deprecated_call(): | ||
from singer_sdk.testing import get_standard_target_tests # noqa: F401 | ||
|
||
from singer_sdk import testing | ||
|
||
with pytest.raises( | ||
AttributeError, | ||
match="module singer_sdk.testing has no attribute", | ||
): | ||
testing.foo # noqa: B018 |