Skip to content

Commit

Permalink
Unknown field in LODs issue test (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
MCPN authored Nov 15, 2023
1 parent 067be29 commit 8502239
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -995,3 +995,22 @@ def test_bi_4652_measure_filter_with_total_in_select(self, control_api, data_api
data_rows = get_data_rows(result_resp)
dim_values = [row[0] for row in data_rows]
assert len(dim_values) == len(set(dim_values)), "Dimension values are not unique"

@pytest.mark.xfail(reason="https://github.com/datalens-tech/datalens-backend/issues/98") # FIXME
def test_fixed_with_unknown_field(self, control_api, data_api, saved_dataset):
ds = add_formulas_to_dataset(
api_v1=control_api,
dataset=saved_dataset,
formulas={
"sales sum fx unknown": "SUM([sales] FIXED [unknown])",
},
)

result_resp = data_api.get_result(
dataset=ds,
fields=[
ds.find_field(title="sales sum fx unknown"),
],
fail_ok=True,
)
assert result_resp.status_code == HTTPStatus.BAD_REQUEST, result_resp.json

0 comments on commit 8502239

Please sign in to comment.