autowisp.tests.test_evaluator module
Class Inheritance Diagram

Tests for the symbol table every AutoWISP expression is evaluated in.
Evaluator and LightCurveEvaluator are siblings deriving from
EvaluatorBase, and roughly two dozen modules build one. What they offer
is therefore worth pinning in one place: the names AutoWISP adds, the names
it takes away, and what happens to a bad expression.
- class autowisp.tests.test_evaluator.TestErrorHandling(methodName='runTest')[source]
Bases:
TestCase
A bad expression raises rather than evaluating to
None.
- class autowisp.tests.test_evaluator.TestNanAggregates(methodName='runTest')[source]
Bases:
TestCase
The NaN-ignoring aggregates are available and are numpy’s.
- test_a_missing_numpy_name_would_fail_loudly()[source]
The list is explicit so that numpy dropping one is an error.
- test_bound_to_the_numpy_functions()[source]
A name resolving to something else would be worse than absent.
- class autowisp.tests.test_evaluator.TestRemovedNames(methodName='runTest')[source]
Bases:
TestCase
Names asteval offers that AutoWISP takes away.