forked from urwid/urwid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Broken children of `DelegateToWidgetMixin` * broken moved imports: private fields were used
- Loading branch information
1 parent
e085a21
commit a7dbb64
Showing
3 changed files
with
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from __future__ import annotations | ||
|
||
import unittest | ||
|
||
|
||
class TestMovedImports(unittest.TestCase): | ||
def test_moved_imports_direct(self) -> None: | ||
with self.assertWarns(DeprecationWarning): | ||
from urwid import web_display | ||
|
||
from urwid.display import web | ||
|
||
self.assertIs(web, web_display) | ||
|
||
def test_moved_imports_nested(self) -> None: | ||
from urwid.display import html_fragment | ||
from urwid.html_fragment import HtmlGenerator | ||
|
||
self.assertIs(html_fragment.HtmlGenerator, HtmlGenerator) |
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