Commit Graph

9 Commits

Author SHA1 Message Date
BethanyG
aa3e379ff1 [DOCS]: Update Python Versions and Requirements (#3467)
* Additional sweep to update Python versions and supported Python versions.
* Fixed requirements and CONTRIBUTING.
* Trying a different line skip to see if it fixes CI.  CI is failing on test file generation again.
* Once again re-rendering tests to see if it fixes CI.
[no important files changed]
2023-07-16 15:09:14 -07:00
BethanyG
b49664ac66 [Tooling]: Changed Generate Script to Skip Diffing Generated Comments & Timestamp (#3466)
* Changed generate script to skp diffing generated comments and timestamp at top of file.
* Reordered and regenerated test files for practice exercises.
[no important files changed]
2023-07-15 15:27:31 -07:00
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
5571880a47 Changed assertion to be one line
Changed the template and file to have the assertion be one line.  Otherwise, we risk the website cutting off the test code.
2022-09-30 13:50:44 -07:00
Graham Ashton
7e61fc60b8 Fix bad assertion in DiffieHellmanTest
The original code passed a generator expression into the assertion,
which was converted into a list prior to being evaluated for truthiness.

If all the values in the generator are False, the assertion will check
whether `[False, False, False, ...]` is truthy, which it is.

I can't see how this test can ever have failed.

I've used `subTest()`, having seen it used in other exercises.
2022-09-30 13:50:44 -07:00
BethanyG
ba346b3c18 Corrected Malformed Diffie-Hellman Jinja2 template.
- Added a skip formatting instruction to Black
- Reformatted template to have assert test all on one line
- Re-generated tests and tested example solution
2022-06-03 05:46:50 -07:00
BethanyG
a01f29c4c5 Pulled down updates from problem-specifications. Updated JinJa2 template and egenerated test file. (#2743) 2021-11-10 22:08:14 +01: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