elasticmock icon indicating copy to clipboard operation
elasticmock copied to clipboard

elasticmock doesn't support some elasticsearch_dsl features

Open manalelidrissi opened this issue 4 years ago • 1 comments

Hello all,

When I was introducing elasticmock for unit testing, I found out that it doesn't support the "must", "should" and "must_not" features of Elasticsearch_dsl.

Has anyone experienced this issue ? If so, What do you advise me to do ? To the elasticmock team : Do you manage to resolve this issue on the next release ? For now, what's the alternative ?

Would be really grateful if you could help me move forward :)

manalelidrissi avatar Jan 13 '21 10:01 manalelidrissi

It seems that MUST and SHOULD are already implemented, but MUST_NOT* is not (See here).

It seems an easy change, afaik. Wdyt of sending a PR with that?

vrcmarcos avatar Jan 17 '21 04:01 vrcmarcos