Commit Graph

5 Commits

Author SHA1 Message Date
BethanyG
e7a6b0dc7d [JinJa2] Corrected the macro used for comments on the test file. (#3373)
* Corrected the macro for comments on the test file.
* Added current_date (utcnow()) variable available for template macros.
* Removed unnecessary datetime import from macros file.
* Regenerated all practice exercise test files to add timestamp.
* Changed `datetime.now(tz=timezone.utc)` to `datetime.now(tz=timezone.utc).date()`
* Second regeneration to remove `timestamp` and just keep `date` for test files.
[no important files changed]
2023-07-14 15:52:15 -07:00
BethanyG
975a67911c Fixed indentation error in exception trapping code and regenerated test files. 2021-10-25 14:09:00 -07:00
BethanyG
bac3c1361d [Practice Exercises]: Add Better Error Handling Instructions & Tests for Error Raising Messages (# 2 of 8) (#2691)
* Edited instrucitons.apped to have better error handling instructions.

* Edited Jinja2 template and exemplar to have proper error message.

* Regenerated test file.

* Added instructions append with error handling message.

* Altered JinJa2 template for error handling and adjusted example to have error classes.

* Regenerated test cases.

* Updated stub wit new error classes.

* Added error handling instructions append.

* Adjusted JinJa2 template to test for specific message.

* Regenerated test file.

* Added instructions apped for error handling.

* Added instructions append for error handling and adjusted example and test file.

* Corrected syntax error.
2021-10-25 18:36:44 +02:00
Corey McCandless
ae3be07737 use python3.8 in CI and run test generator 2021-02-01 19:08:02 -08:00
Erik Schierboom
c5d9d9c0b3 [v3] Move existing exercises to exercises/practice 2021-01-29 11:14:36 -05:00