Skip to content

Commit

Permalink
Make test dir a package for pyright-friendly relative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
AndydeCleyre committed Sep 17, 2024
1 parent 5f4098c commit c755f39
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions test/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Test suite for NestedTextTo."""
5 changes: 3 additions & 2 deletions test/test_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

from typing import cast

from commands import json2nt, nt2json
from plumbum import LocalPath, local
from utils import assert_file_content, casting_args_from_schema_file
from ward import test

from .commands import json2nt, nt2json
from .utils import assert_file_content, casting_args_from_schema_file

SAMPLES = local.path(__file__).up() / 'samples' / 'json' # type: ignore


Expand Down
5 changes: 3 additions & 2 deletions test/test_toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

from typing import cast

from commands import nt2toml, toml2nt
from plumbum import LocalPath, local
from utils import assert_file_content, casting_args_from_schema_file
from ward import skip, test

from .commands import nt2toml, toml2nt
from .utils import assert_file_content, casting_args_from_schema_file

try:
import tomli # noqa: F401
import tomli_w # noqa: F401
Expand Down
5 changes: 3 additions & 2 deletions test/test_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

from typing import cast

from commands import nt2yaml, yaml2nt
from plumbum import LocalPath, local
from utils import assert_file_content, casting_args_from_schema_file
from ward import test

from .commands import nt2yaml, yaml2nt
from .utils import assert_file_content, casting_args_from_schema_file

SAMPLES = local.path(__file__).up() / 'samples' / 'yaml' # type: ignore


Expand Down

0 comments on commit c755f39

Please sign in to comment.