]> git.ipfire.org Git - thirdparty/samba.git/commit
ldb:test:api_search: use class method to add index
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Sat, 17 Aug 2024 23:03:54 +0000 (11:03 +1200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 24 Sep 2024 09:14:39 +0000 (09:14 +0000)
commitd9225d2460eb5887c6a16b5443c4f33d3c208aee
tree087af834f4d37c2719d00c1b54bee0416b461112
parentf7269c2fa364aaa6a46d75f1df584d333ba7d13e
ldb:test:api_search: use class method to add index

The index attribute of these classes was a mutable object, which made
me nervous. If a subclass were to alter the class.index (rather than
replace it), it would affect tests in other subclasses.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/ldb/tests/python/api_search.py