Skip to content

Commit

Permalink
#284 Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hakancelikdev committed Mar 29, 2023
1 parent 955908b commit 1a36aa8
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/cases/analyzer/as_import/dotted_module_name_simple.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from typing import List, Union

from unimport.statement import Import, ImportFrom, Name

__all__ = ["NAMES", "IMPORTS", "UNUSED_IMPORTS"]


NAMES: List[Name] = []
IMPORTS: List[Union[Import, ImportFrom]] = [
Import(lineno=1, column=1, name="c", package="a.b"),
]
UNUSED_IMPORTS: List[Union[Import, ImportFrom]] = [
Import(lineno=1, column=1, name="c", package="a.b"),
]
14 changes: 14 additions & 0 deletions tests/cases/analyzer/dotted/dotted_module_name_simple.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from typing import List, Union

from unimport.statement import Import, ImportFrom, Name

__all__ = ["NAMES", "IMPORTS", "UNUSED_IMPORTS"]


NAMES: List[Name] = []
IMPORTS: List[Union[Import, ImportFrom]] = [
Import(lineno=1, column=1, name="a.b", package="a.b"),
]
UNUSED_IMPORTS: List[Union[Import, ImportFrom]] = [
Import(lineno=1, column=1, name="a.b", package="a.b"),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions tests/cases/refactor/dotted/dotted_module_name_simple.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions tests/cases/source/as_import/dotted_module_name_simple.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import a.b as c
1 change: 1 addition & 0 deletions tests/cases/source/dotted/dotted_module_name_simple.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import a.b

0 comments on commit 1a36aa8

Please sign in to comment.