CDT AIMLAC Training - March 23rd 2021 - Introduction to automated testing and continuous integration in Python

Feedback from first section

What do you not understand?

What has been most useful?

  • Parameterized unit tests
  • Expected Exceptions

Feedback from second section

What do you not understand?

What has been most useful?

  • Using fixtures to pre-load the book text for the tests was a handy tip.

Any other comments?

March 24th

start from section 5 https://edbennett.github.io/python-testing-ci/05-randomness/index.html

Closing github issues with a comment: https://github.blog/2013-01-22-closing-issues-via-commit-messages/

Skipping CI with a commit: https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/
CI skip tags are case sensitive! (e.g, [CI SKIP] will not work!)

starter workflows: https://github.com/actions/starter-workflows

Windows Chocolatey package manager: https://chocolatey.org/install
(after installation, use choco install git)

First break

What do you not understand?

What has been most useful?

Are we going too fast, just right or too slow? (add +1 next to your chosen answer)

slow
just right + 1 +1 +1
fast +1+1 +1 +1

Putting it all together exercise

https://github.com/CDT-AIMLAC/pl_curves

full instructions at https://edbennett.github.io/python-testing-ci/08-exercise/index.html

e.g.https://github.com/username/pl_curves

https://github.com/WYVERN2742/pl_curves

https://github.com/aeolai1/pl_curves

https://github.com/bip5/pl_curves

https://github.com/MattSelwood/pl_curves

https://github.com/JackFurby/pl_curves

https://github.com/jadot-bp/pl_curves

https://github.com/samwincott/pl_curves

https://github.com/lukasgolino/pl_curves

(Has to be ran in cmd, not powershell)
mklink /H "tests/pl_curve.py" "pl_curve.py"

March 24th - How the web works

Lesson material: https://edbennett.github.io/web-novice/

First break feedback

What do you not understand?

  • What do most of the headers mean in requests?

What has been most useful so far?

  • The fact that I doubt I'd have learned this normally.

Are we going too fast, just right or too slow? (add +1 next to your chosen answer)

slow:
just right: ++++++
fast:

End of lesson feedback

What do you not understand?

What has been most useful so far?

  • Exercises/coding alongside is very useful
    -An explenation on how to interact with APIs

Any other comments?

  • Really useful resource, thank you RSEs
  • Can't think of anything not covered
Select a repo