Skip to content

Commit

Permalink
Merge pull request #268 from koxudaxi/fix_python_sdk_mock_on_unittest
Browse files Browse the repository at this point in the history
Fix Python SDK Mock on unittest
  • Loading branch information
koxudaxi authored Apr 9, 2021
2 parents daba76c + c1e094b commit 42b666d
Show file tree
Hide file tree
Showing 123 changed files with 250 additions and 219 deletions.
1 change: 1 addition & 0 deletions testData/MockSdk3.7/bin/python3.7
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# placeholder for python interpreter
2 changes: 1 addition & 1 deletion testData/completion/assignedClass.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel


Expand Down
2 changes: 1 addition & 1 deletion testData/completion/assignedInstance.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel


Expand Down
2 changes: 1 addition & 1 deletion testData/completion/assignedInstancePythonClass.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel


Expand Down
2 changes: 1 addition & 1 deletion testData/completion/assignedInstanceWithImport.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from .instance import A

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/assignedString.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel


Expand Down
2 changes: 1 addition & 1 deletion testData/completion/baseSetting.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel, BaseSettings

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/class.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel

class B:
Expand Down
2 changes: 1 addition & 1 deletion testData/completion/classFields.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel


Expand Down
2 changes: 1 addition & 1 deletion testData/completion/classInitMethod.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/classMethodCls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/classValidatorCls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
,from builtins import *
,

from pydantic import BaseModel, validator

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel

class A(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion testData/completion/configDefined.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel

class A(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion testData/completion/conlist.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel
from pydantic.types import conlist

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/dataclassKeywordArgument.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from dataclasses import field, MISSING

from pydantic.dataclasses import dataclass
Expand Down
2 changes: 1 addition & 1 deletion testData/completion/definedNestedClass.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel

class A(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion testData/completion/field.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel


Expand Down
2 changes: 1 addition & 1 deletion testData/completion/fieldAnnotated.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from typing import Annotated
from pydantic import BaseModel, Field

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/fieldCustomRoot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel

class A(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion testData/completion/fieldField.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel, Field

def get_alias():
Expand Down
2 changes: 1 addition & 1 deletion testData/completion/fieldIgnore.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from typing import ClassVar
from pydantic import BaseModel

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/fieldOptional.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from typing import Union, Optional

from pydantic import BaseModel
Expand Down
2 changes: 1 addition & 1 deletion testData/completion/fieldOverride.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/fieldSchema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel, Schema

def get_alias():
Expand Down
2 changes: 1 addition & 1 deletion testData/completion/fieldSchemaField.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel, Field

def get_alias():
Expand Down
2 changes: 1 addition & 1 deletion testData/completion/fieldUnion.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from typing import Union

from pydantic import BaseModel
Expand Down
2 changes: 1 addition & 1 deletion testData/completion/importedAssignedInstance.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel
from .assignedInstance import a

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/importedInstance.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel
from .instance import A

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/instance.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel


Expand Down
2 changes: 1 addition & 1 deletion testData/completion/instanceBroken.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel


Expand Down
2 changes: 1 addition & 1 deletion testData/completion/instanceParent.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/instanceParentIsPythonClass.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/instancePythonClass.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/instancePythonFunction.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/instanceUnResolve.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel

a = b
Expand Down
2 changes: 1 addition & 1 deletion testData/completion/keywordArgument.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel, Field

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel, Field

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel, Field

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel, Field

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel, Field

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/keywordArgumentAssignValue.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/keywordArgumentCustomRoot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/keywordArgumentDot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/keywordArgumentDotName.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/keywordArgumentFieldAnnotated.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from typing import Annotated
from pydantic import BaseModel, Field

Expand Down
4 changes: 2 additions & 2 deletions testData/completion/keywordArgumentIgnore.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel

Expand All @@ -10,6 +10,6 @@ class A(BaseModel):

class B(A):
_efg: str = str('abc')
__hij: str = str('abc')
__hij: str = 1

B(<caret>)
2 changes: 1 addition & 1 deletion testData/completion/keywordArgumentInserted.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/keywordArgumentParent.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/keywordArgumentPythonClass.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/keywordArgumentPythonFunction.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/keywordArgumentSchema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel, Schema

def get_alias():
Expand Down
2 changes: 1 addition & 1 deletion testData/completion/keywordArgumentSchemaField.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel, Field

def get_alias():
Expand Down
2 changes: 1 addition & 1 deletion testData/completion/methodSelf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


from pydantic import BaseModel

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/nestedClass.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel

class A(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion testData/completion/parameterAnnotation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel


Expand Down
2 changes: 1 addition & 1 deletion testData/completion/parameterAnnotationPythonClass.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel


Expand Down
2 changes: 1 addition & 1 deletion testData/completion/parameterAnnotationType.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel
from typing import Type

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel
from typing import Type

Expand Down
2 changes: 1 addition & 1 deletion testData/completion/parameterAnnotationUnion.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from typing import Union

from pydantic import BaseModel
Expand Down
2 changes: 1 addition & 1 deletion testData/completion/parameterAnnotationUnionPythonClass.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from typing import Union

from pydantic import BaseModel
Expand Down
2 changes: 1 addition & 1 deletion testData/completion/parameterDefaultValue.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel


Expand Down
2 changes: 1 addition & 1 deletion testData/completion/parameterNoType.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *


def get_a(a):
a.<caret>
2 changes: 1 addition & 1 deletion testData/completion/pythonClass.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from builtins import *

from pydantic import BaseModel

class B:
Expand Down
Loading

0 comments on commit 42b666d

Please sign in to comment.