mirror of https://github.com/Textualize/rich.git
test fix
This commit is contained in:
parent
607397e75d
commit
589bae9636
|
@ -2,7 +2,7 @@ from rich.bar import Bar
|
|||
from rich.segment import Segment
|
||||
from rich.style import Style
|
||||
|
||||
from render import render
|
||||
from .render import render
|
||||
|
||||
|
||||
def test_init():
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
from rich.__main__ import make_test_card
|
||||
|
||||
from render import render
|
||||
from .render import render
|
||||
|
||||
try:
|
||||
from _card_render import expected
|
||||
from ._card_render import expected
|
||||
except ImportError:
|
||||
expected = None
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import pytest
|
|||
|
||||
from rich.emoji import Emoji, NoEmoji
|
||||
|
||||
from render import render
|
||||
from .render import render
|
||||
|
||||
|
||||
def test_no_emoji():
|
||||
|
|
|
@ -5,7 +5,7 @@ import io
|
|||
|
||||
from rich.console import Console
|
||||
|
||||
from render import replace_link_ids
|
||||
from .render import replace_link_ids
|
||||
|
||||
|
||||
test_data = [1, 2, 3]
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# coding=utf-8
|
||||
|
||||
from _markdown import MARKDOWN
|
||||
from ._markdown import MARKDOWN
|
||||
|
||||
from render import render
|
||||
from .render import render
|
||||
|
||||
from rich.console import Console
|
||||
from rich.markdown import Markdown
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# coding=utf-8
|
||||
|
||||
from _markdown import MARKDOWN
|
||||
from ._markdown import MARKDOWN
|
||||
|
||||
from render import render
|
||||
from .render import render
|
||||
|
||||
from rich.console import Console
|
||||
from rich.markdown import Markdown
|
||||
|
|
|
@ -220,7 +220,7 @@ def test_columns() -> None:
|
|||
console.log("hello")
|
||||
console.print("world")
|
||||
progress.refresh()
|
||||
from render import replace_link_ids
|
||||
from .render import replace_link_ids
|
||||
|
||||
result = replace_link_ids(console.file.getvalue())
|
||||
print(repr(result))
|
||||
|
|
|
@ -6,10 +6,10 @@ import pytest
|
|||
from rich.console import Console
|
||||
from rich.traceback import install, Traceback
|
||||
|
||||
from render import render
|
||||
from .render import render
|
||||
|
||||
try:
|
||||
from _exception_render import expected
|
||||
from ._exception_render import expected
|
||||
except ImportError:
|
||||
expected = None
|
||||
|
||||
|
|
Loading…
Reference in New Issue