-
-
Notifications
You must be signed in to change notification settings - Fork 485
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the deprecated
simple_history_admin_list.display_list()
+ **…
…Release 3.9.0** (#1444) * Removed the deprecated simple_history_admin_list This was deprecated in 16b7de7. * Updated release notes for removing display_list()
- Loading branch information
Showing
3 changed files
with
15 additions
and
24 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 was deleted.
Oops, something went wrong.
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,13 +1,10 @@ | ||
import unittest | ||
|
||
from simple_history import __version__ | ||
from simple_history.templatetags.simple_history_admin_list import display_list | ||
|
||
|
||
class DeprecationWarningTest(unittest.TestCase): | ||
def test__display_list__warns_deprecation_and_is_yet_to_be_removed(self): | ||
with self.assertWarns(DeprecationWarning): | ||
display_list({}) | ||
# DEV: `display_list()` (and the file `simple_history_admin_list.py`) should be | ||
# removed when 3.8 is released | ||
self.assertLess(__version__, "3.8") | ||
"""Tests that check whether ``DeprecationWarning`` is raised for certain features, | ||
and that compare ``simple_history.__version__`` against the version the features | ||
will be removed in. | ||
If this class is empty, it normally means that nothing is currently deprecated. | ||
""" |