assert statements shouldn't be used in the actual, non-test code, since they can be disabled by the -O flag: https://docs.python.org/3/using/cmdline.html#cmdoption-O It's not clear how likely folks would run Civis-related code with this flag on, but it's better to convert these assert statements into conditional statements with exception raising.
assert
statements shouldn't be used in the actual, non-test code, since they can be disabled by the-O
flag: https://docs.python.org/3/using/cmdline.html#cmdoption-O It's not clear how likely folks would run Civis-related code with this flag on, but it's better to convert theseassert
statements into conditional statements with exception raising.