Skip to content

Releases: datacamp/pythonwhat

Add check_function, has_equal_ast

04 Jan 21:14
Compare
Choose a tag to compare

May now test sum([1,2,3]), using

Ex().check_function('sum', 0).check_args(0).has_equal_ast()

Fix logic issue

03 Jan 12:51
Compare
Choose a tag to compare
v2.1.2

bump version

Fix dilling issue

06 Dec 09:57
Compare
Choose a tag to compare

Fix issue with dilling

Post-refactor release

02 Dec 09:27
Compare
Choose a tag to compare
  • 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 the highlight argument.
  • All check_ functions use zero-based indexing. test_for_loop(1), but check_for_loop(0).
  • test_not operator to negate operations, exciting!

Pythonwhat refactored

28 Nov 10:25
Compare
Choose a tag to compare

Huge refactor.

Version for testing

13 Nov 18:05
Compare
Choose a tag to compare

New version to test CI functionality.

First release

19 Jul 09:41
Compare
Choose a tag to compare

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 different test_function() calls, you can choose custom feedback messages for different arguments or keywords that are incorrectly defined. By setting do_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 with from x import y works now; you should point to that function specifically now inside test_function(), with test_function("x.y").
  • Overall addition of tests for robustness.