Add ExperimentWaffleFlag

This is a helpful class when running an experiment, to help
bucket users and keep track of which enrollments to consider
as part of the experiment.

AA-53
This commit is contained in:
Michael Terry
2020-03-02 13:58:14 -05:00
parent 62e1b84460
commit e724a4bcb7
11 changed files with 324 additions and 33 deletions

View File

@@ -600,10 +600,10 @@ def check_sum_of_calls(object_, methods, maximum_calls, minimum_calls=1, include
print("".join(messages))
# verify the counter actually worked by ensuring we have counted greater than (or equal to) the minimum calls
assert call_count >= minimum_calls
assert call_count >= minimum_calls, call_count
# now verify the number of actual calls is less than (or equal to) the expected maximum
assert call_count <= maximum_calls
assert call_count <= maximum_calls, call_count
def mongo_uses_error_check(store):