-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Add Deprecation Message (#103)
Problem: too strict aleph-message dependency Solution: loosen it to accept compatible versions to 0.4.2 Co-authored-by: Hugo Herter <[email protected]>
- Loading branch information
1 parent
2f5642c
commit 9074d98
Showing
3 changed files
with
71 additions
and
14 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 |
---|---|---|
@@ -1,5 +1,29 @@ | ||
import pytest | ||
|
||
from aleph.sdk import __version__ | ||
|
||
|
||
def test_version(): | ||
assert __version__ != "" | ||
|
||
|
||
def test_deprecation(): | ||
with pytest.raises(ImportError): | ||
from aleph.sdk import AlephClient # noqa | ||
|
||
with pytest.raises(ImportError): | ||
from aleph.sdk import AuthenticatedAlephClient # noqa | ||
|
||
with pytest.raises(ImportError): | ||
from aleph.sdk import synchronous # noqa | ||
|
||
with pytest.raises(ImportError): | ||
from aleph.sdk import asynchronous # noqa | ||
|
||
with pytest.raises(ImportError): | ||
import aleph.sdk.synchronous # noqa | ||
|
||
with pytest.raises(ImportError): | ||
import aleph.sdk.asynchronous # noqa | ||
|
||
from aleph.sdk import AlephHttpClient # noqa |