Releases: datacamp/pythonwhat
Releases · datacamp/pythonwhat
allow legacy SCTs to specify copy option
v2.6.1 Create setup.py
option to disable copying in has_expr
pythonwhat tries make deepcopies of some objects, to avoid problems arising from mutation via SCTs.
Now the copy arg can disable deep copying. Should speed up SCTs, but can be scary and dangerous.
E.g. Ex().has_equal_value(copy = False)
bugfix: remove unnecessary root Expr in has_equal_ast
v2.5.1 bump patch version
has_equal_ast enhancements
- now has
codeandexactarguments for specifying code for solution ast, and whether to test that AST is exact match or only contained in submission.
has_context SCT
Also remove exclamatory failure messages!
add override SCT
check_function(..., signature = True)is now the default (as intended)- override function
e.g.
Ex().override("if True: print(1)").check_if_else(0).has_equal_ast()
Add check_function, has_equal_ast
May now test sum([1,2,3]), using
Ex().check_function('sum', 0).check_args(0).has_equal_ast()
Fix logic issue
v2.1.2 bump version
Fix dilling issue
Fix issue with dilling
Post-refactor release
- Documentation through
testthedocs. Several high-level articles to grasp pythonwhat's new structure. - Formatted messages, if you start your messages with
FMT: - Highlighting for
test_function()is disabled for now, because gives unwanted behavior in several use-cases. Stays like this until elegant solution is found that works nicely by default in all situations. Highlighting can be controlled through thehighlightargument. - All
check_functions use zero-based indexing.test_for_loop(1), butcheck_for_loop(0). test_notoperator to negate operations, exciting!