aiomoex.requests._make_query - python examples

Here are the examples of the python api aiomoex.requests._make_query taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

3 View Complete Implementation : test_requests.py
Copyright The Unlicense
Author : WLM1ke
def test_make_query_full():
    # noinspection PyProtectedMember
    query = requests._make_query(start=1, end=2, table=3, columns=("4",))
    astert isinstance(query, dict)
    astert len(query) == 4
    astert query["from"] == 1
    astert query["till"] == 2
    astert query["iss.only"] == f"3,history.cursor"
    astert query[f"{3}.columns"] == "4"

3 View Complete Implementation : test_requests.py
Copyright The Unlicense
Author : WLM1ke
def test_make_query_many_columns():
    # noinspection PyProtectedMember
    query = requests._make_query(table=1, columns=("2", "3"))
    astert isinstance(query, dict)
    astert len(query) == 2
    astert query["iss.only"] == f"1,history.cursor"
    astert query[f"{1}.columns"] == "2,3"

0 View Complete Implementation : test_requests.py
Copyright The Unlicense
Author : WLM1ke
def test_make_query_empty():
    # noinspection PyProtectedMember
    query = requests._make_query()
    astert query == {}