From 589bae9636052017d56ab25b9a46956f8077aa23 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Thu, 16 Jul 2020 17:24:16 +0100 Subject: [PATCH] test fix --- tests/test_bar.py | 2 +- tests/test_card.py | 4 ++-- tests/test_emoji.py | 2 +- tests/test_log.py | 2 +- tests/test_markdown.py | 4 ++-- tests/test_markdown_no_hyperlinks.py | 4 ++-- tests/test_progress.py | 2 +- tests/test_traceback.py | 4 ++-- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/test_bar.py b/tests/test_bar.py index 75bd955e..3571c872 100644 --- a/tests/test_bar.py +++ b/tests/test_bar.py @@ -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(): diff --git a/tests/test_card.py b/tests/test_card.py index 0b46db17..38e723a1 100644 --- a/tests/test_card.py +++ b/tests/test_card.py @@ -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 diff --git a/tests/test_emoji.py b/tests/test_emoji.py index 424b81ad..cc519daa 100644 --- a/tests/test_emoji.py +++ b/tests/test_emoji.py @@ -2,7 +2,7 @@ import pytest from rich.emoji import Emoji, NoEmoji -from render import render +from .render import render def test_no_emoji(): diff --git a/tests/test_log.py b/tests/test_log.py index 2d5eeeb2..1948e833 100644 --- a/tests/test_log.py +++ b/tests/test_log.py @@ -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] diff --git a/tests/test_markdown.py b/tests/test_markdown.py index ab8ca515..da853810 100644 --- a/tests/test_markdown.py +++ b/tests/test_markdown.py @@ -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 diff --git a/tests/test_markdown_no_hyperlinks.py b/tests/test_markdown_no_hyperlinks.py index 10ad3181..be0b4837 100644 --- a/tests/test_markdown_no_hyperlinks.py +++ b/tests/test_markdown_no_hyperlinks.py @@ -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 diff --git a/tests/test_progress.py b/tests/test_progress.py index a6debf37..d7a205f9 100644 --- a/tests/test_progress.py +++ b/tests/test_progress.py @@ -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)) diff --git a/tests/test_traceback.py b/tests/test_traceback.py index ffa8e7fe..00eadcc9 100644 --- a/tests/test_traceback.py +++ b/tests/test_traceback.py @@ -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