Releases: datacamp/pythonwhat
Releases · datacamp/pythonwhat
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 thehighlight
argument. - All
check_
functions use zero-based indexing.test_for_loop(1)
, butcheck_for_loop(0)
. test_not
operator to negate operations, exciting!
Pythonwhat refactored
Huge refactor.
Version for testing
New version to test CI functionality.
First release
Basically, pythonwhat
contains similar functionality as testwhat
, but with some functionality specific to the syntax and spirit of the Python programming language.
In the recent weeks, following things have been added:
- Mistake highlighting; the function or object you're making a mistake is highlighted in DataCamp's editor. This feature depends on the functions you use; not all of them can show the line of the mistake (e.g.
test_output_contains()
) - Improvements of
test_function
: By doing differenttest_function()
calls, you can choose custom feedback messages for different arguments or keywords that are incorrectly defined. By settingdo_eval=None
, you can simply check if args and keywords have been specified, but you don't check the correspondence of these parameters with the solution. - Fix for
test_function()
, where importing a specific function from a package withfrom x import y
works now; you should point to that function specifically now insidetest_function()
, withtest_function("x.y")
. - Overall addition of tests for robustness.