зеркало из https://github.com/Azure/pykusto.git
Add unit test and run configuration
This commit is contained in:
Родитель
64bf4cbf69
Коммит
f7432acd5d
|
@ -0,0 +1,18 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Run tests" type="tests" factoryName="Unittests">
|
||||
<module name="pykusto" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="PARENT_ENVS" value="true" />
|
||||
<option name="SDK_HOME" value="C:\venv3\pykusto\Scripts\python.exe" />
|
||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/test" />
|
||||
<option name="IS_MODULE_SDK" value="true" />
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||
<option name="_new_pattern" value="""" />
|
||||
<option name="_new_additionalArguments" value="""" />
|
||||
<option name="_new_target" value=""$PROJECT_DIR$/test"" />
|
||||
<option name="_new_targetType" value=""PATH"" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
|
@ -0,0 +1,9 @@
|
|||
from unittest import TestCase
|
||||
|
||||
from column import columnGenerator as Col
|
||||
from query import Query, Order, Nulls
|
||||
|
||||
|
||||
class TestQuery(TestCase):
|
||||
def test_where(self):
|
||||
print(Query().where(Col.foo > 4).take(5).sort_by(Col.bar, Order.ASC, Nulls.LAST).compile_all())
|
4
ut.py
4
ut.py
|
@ -1,4 +0,0 @@
|
|||
from column import columnGenerator as Col
|
||||
from query import Query, Order, Nulls
|
||||
|
||||
print(Query().where(Col.foo > 4).take(5).sort_by(Col.bar, Order.ASC, Nulls.LAST).compile_all())
|
Загрузка…
Ссылка в новой задаче