-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Devops: Remove deprecations for v1.0 (#160)
- Loading branch information
Showing
4 changed files
with
0 additions
and
83 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
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,17 +1,3 @@ | ||
"""Module to test deprecated functionality. | ||
Both to check that they work, but also to ensure full coverage.""" | ||
import pytest | ||
|
||
from disk_objectstore import utils | ||
|
||
|
||
def test_get_hash(): | ||
"""Test the get_hash method.""" | ||
hash_type = "sha256" | ||
content = b"523453dfvsd" | ||
with pytest.warns(DeprecationWarning, match="get_hash_cls"): | ||
hasher = utils.get_hash(hash_type=hash_type)() | ||
hasher.update(content) | ||
hashkey = hasher.hexdigest() | ||
assert hashkey == "11c4da82bc95154d2a3116e66c3d49568e4fd0f7184d44a9d611f2749539b7f6" |