Skip to content

Releases: datacamp/pythonwhat

allow legacy SCTs to specify copy option

08 Jun 19:48

Choose a tag to compare

option to disable copying in has_expr

25 May 20:59

Choose a tag to compare

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

19 Apr 13:46

Choose a tag to compare

has_equal_ast enhancements

12 Apr 18:28

Choose a tag to compare

  • now has code and exact arguments for specifying code for solution ast, and whether to test that AST is exact match or only contained in submission.

has_context SCT

07 Mar 21:16

Choose a tag to compare

Also remove exclamatory failure messages!

add override SCT

05 Jan 18:17

Choose a tag to compare

  • 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

04 Jan 21:14

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

Choose a tag to compare

v2.1.2

bump version

Fix dilling issue

06 Dec 09:57

Choose a tag to compare

Fix issue with dilling

Post-refactor release

02 Dec 09:27

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!