Ф
Size: a a a
Ф
ИС
RA
дм
ИС
ИС
RA
дм
ИС
RA
P
Ф
AV
@pytest.mark.parametrize("filter_by, expected", [("network='Лента'", 0), ("code='L335'", 0), ("region='Москва'", 0), ("contragent_id='15'", 0)])
def test_get_tradepoints_filter_by(get_token, filter_by, expected):
req = ap_pb2.GetTradepointsRequest(filter=ap_pb2.TradepointsFilter(filter_by), page=ap_pb2.Pagination(limit=20, offset=0))
response = stub.GetTradepoints(req, metadata=get_token)
assert response.total > expectedreq = ap_pb2.GetTradepointsRequest(filter=ap_pb2.TradepointsFilter(region='Москва')
P
({'region': 'Москва'}, 0),req = ap_pb2.GetTradepointsRequest(filter=ap_pb2.TradepointsFilter(**filter_by)В
V
V
В
OC
В