Developer Tools Reference
- Source
- TIFA
- CAIT
find_function_calls()
find_function_definition()
find_operation()
find_prior_initializations()
function_is_called()
is_top_level()
CaitException
data_state()
data_type()
def_use_error()
expire_cait_cache()
find_asts()
find_expr_sub_matches()
find_match()
find_matches()
find_submatches()
parse_program()
reparse_if_needed()
require_tifa()
reset()
- Sandbox
reset()
Sandbox
attribute_error
import_error
indentation_error
index_error
io_error
key_error
memory_error
name_error
runtime_error
timeout_error
type_error
value_error
zero_division_error
CommandBlock
allow_function()
allow_module()
allow_real_io()
block_function()
block_module()
block_real_io()
call()
check_coverage()
clear_input()
clear_mocks()
clear_output()
clear_sandbox()
clear_student_data()
count_unique_calls()
evaluate()
get_call_arguments()
get_exception()
get_function()
get_input()
get_module()
get_output()
get_python_errors()
get_raw_output()
get_sandbox()
get_student_data()
get_trace()
mock_function()
mock_module()
queue_input()
reset_output()
run()
set_input()
start_trace()
stop_trace()
- Assertions
reset()
ensure_ast
ensure_dataclass()
ensure_documented_functions
ensure_function()
ensure_function_call
ensure_functions_return
ensure_import
ensure_literal
ensure_literal_type
ensure_operation
ensure_operator
ensure_prints_exactly()
ensure_starting_code
files_not_handled_correctly()
function_prints()
has_import()
only_printing_variables
open_without_arguments
prevent_advanced_iteration()
prevent_ast
prevent_embedded_answer
prevent_function_call
prevent_import
prevent_literal
prevent_literal_type
prevent_operation
prevent_operator
prevent_printing_functions
assertAlmostEqual
assertEqual
assertFalse
assertGreater
assertGreaterEqual
assertHasAttr
assertHasFunction
assertHasVariable
assertIn
assertIs
assertIsInstance
assertIsNone
assertIsNot
assertIsNotInstance
assertIsNotNone
assertLengthEqual
assertLengthGreater
assertLengthGreaterEqual
assertLengthLess
assertLengthLessEqual
assertLengthNotEqual
assertLess
assertLessEqual
assertNotAlmostEqual
assertNotEqual
assertNotIn
assertNotOutput
assertNotOutputContains
assertNotRegex
assertNotType
assertOutput
assertOutputContains
assertPrints
assertRegex
assertTrue
assertType
assert_almost_equal
assert_contains_subset
assert_equal
assert_false
assert_greater
assert_greater_equal
assert_has_attr
assert_has_function
assert_has_variable
assert_in
assert_is
assert_is_dataclass
assert_is_instance
assert_is_none
assert_is_not
assert_is_not_dataclass
assert_is_not_none
assert_length_equal
assert_length_greater
assert_length_greater_equal
assert_length_less
assert_length_less_equal
assert_length_not_equal
assert_less
assert_less_equal
assert_not_almost_equal
assert_not_contains_subset
assert_not_equal
assert_not_in
assert_not_is_instance
assert_not_output
assert_not_output_contains
assert_not_output_regex
assert_not_regex
assert_not_type
assert_output
assert_output_contains
assert_output_regex
assert_prints
assert_regex
assert_true
assert_type
ensure_called_uniquely
ensure_coverage
check_dataclass_error
unit_test()
wheat_chaff_game_class
- Questions
- Extensions