to be honest, I'd happily refactor/rewrite most of this test to be more "unit" (and do tests like the one you just mentioned).

This test is supposed to test everything (from what I understand), but it was a real pain to 1/ understand 2/ fix, and I find it very brittle.

However, I'm pretty sure it'll take me at least another day to rewrite most of it, that's why I asked in https://bugzilla.mozilla.org/show_bug.cgi?id=941037 for advice: should I just leave it like that (it works), or should I rewrite/improve.

Also, not sure this is the correct place to do so, but I'd like to discuss the refactoring of the management command itself: it looks pretty outdated (doesn't use pyes or pyelasticsearch, and is completely decoupled from reindex_mkt which seems to do something rather similar).

Thoughts?