From f49d48fbd2848e4be2b9373df6056ecb815ea81a Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Wed, 15 May 2019 22:18:22 +0200 Subject: [PATCH] Add a few more tests for nested stub folders --- .../with_stub_folder/nested_stub_only.pyi | 1 + .../with_stub_folder/nested_with_stub.py | 2 ++ .../with_stub_folder/nested_with_stub.pyi | 2 ++ test/completion/stubs.py | 13 +++++++++++++ 4 files changed, 18 insertions(+) create mode 100644 test/completion/stub_folder/with_stub_folder/nested_stub_only.pyi create mode 100644 test/completion/stub_folder/with_stub_folder/nested_with_stub.py create mode 100644 test/completion/stub_folder/with_stub_folder/nested_with_stub.pyi diff --git a/test/completion/stub_folder/with_stub_folder/nested_stub_only.pyi b/test/completion/stub_folder/with_stub_folder/nested_stub_only.pyi new file mode 100644 index 00000000..4f2f4239 --- /dev/null +++ b/test/completion/stub_folder/with_stub_folder/nested_stub_only.pyi @@ -0,0 +1 @@ +in_stub_only: int diff --git a/test/completion/stub_folder/with_stub_folder/nested_with_stub.py b/test/completion/stub_folder/with_stub_folder/nested_with_stub.py new file mode 100644 index 00000000..0f9111f4 --- /dev/null +++ b/test/completion/stub_folder/with_stub_folder/nested_with_stub.py @@ -0,0 +1,2 @@ +in_python = '' +in_both = '' diff --git a/test/completion/stub_folder/with_stub_folder/nested_with_stub.pyi b/test/completion/stub_folder/with_stub_folder/nested_with_stub.pyi new file mode 100644 index 00000000..53dc2653 --- /dev/null +++ b/test/completion/stub_folder/with_stub_folder/nested_with_stub.pyi @@ -0,0 +1,2 @@ +in_stub: int +in_both: float diff --git a/test/completion/stubs.py b/test/completion/stubs.py index 437be1c1..61b9c21e 100644 --- a/test/completion/stubs.py +++ b/test/completion/stubs.py @@ -22,3 +22,16 @@ with_stub_folder.in_with_stub_both_folder with_stub_folder.in_with_stub_python_folder #? float() with_stub_folder.in_with_stub_stub_folder + +# Folders nested + +from stub_folder.with_stub_folder import nested_stub_only, nested_with_stub + +#? int() +nested_stub_only.in_stub_only +#? float() +nested_with_stub.in_both +#? +with_stub_folder.in_python +#? int() +nested_with_stub.in_stub