ByteSized: Testing your Python code episode artwork

EPISODE · Dec 15, 2022 · 21 MIN

ByteSized: Testing your Python code

from Code for Thought · host RSE

This last episode of ByteSized RSE before the end of 2022 is about testing your Python code.Testing is an essential part of software development, and a lot of what we cover in this episode applies to any programming and scripting language. For Python, the two big frameworks being used are unittest and PyTest. Unittest is built into Python, whereas PyTest is a module you would need to install extra.https://docs.python.org/3/library/unittest.html the built in unit testing framework of Pythonhttps://docs.python.org/3/library/unittest.mock.html mock testing in the unittest frameworkhttps://docs.python.org/3/library/unittest.html#class-and-module-fixtures fixtures for classes and moduleshttps://docs.pytest.org/en/7.2.x/ the popular PyTest frameworkMocking can be done with monkeypatch in PyTest https://docs.pytest.org/en/7.1.x/how-to/monkeypatch.html#Fixtures in PyTest: https://docs.pytest.org/en/7.2.x/reference/fixtures.html Books mentionedWorking effectively with legacy code, Michael Feathers, ISBN: 9780131177055, Pearson's, 2004Refactoring: Improving the Design of Existing Code, Martin Fowler, ISBN: 9780134757681, 2nd edition, Addison-Wesley ProfessionalByte-sized RSE is presented in collaboration with the UNIVERSE-HPC project.https://www.imperial.ac.uk/computational-methods/rse/events/byte-sized-rse/ ByteSized RSE link to Imperial CollegeGet in touchThank you for listening! Merci de votre écoute! Vielen Dank für´s Zuhören!Contact Details/ Coordonnées / Kontakt:Email mailto:[email protected] RSE Slack (ukrse.slack.com): @code4thought or @piddie Bluesky: https://bsky.app/profile/code4thought.bsky.socialLinkedIn: https://www.linkedin.com/in/pweschmidt/  (personal Profile)LinkedIn: https://www.linkedin.com/company/codeforthought/ (Code for Thought Profile)This podcast is licensed under the Creative Commons Licence:  https://creativecommons.org/licenses/by-sa/4.0/

Episode metadata supplied by the publisher feed · Published Dec 15, 2022

Embed this episode

This last episode of ByteSized RSE before the end of 2022 is about testing your Python code. Testing is an essential part of software development, and a lot of what we cover in this episode applies to any programming and scripting language. For Python, the two big frameworks being used are unittest and PyTest. Unittest is built into Python, whereas PyTest is a module you would need to install extra. https://docs.python.org/3/library/unittest.html the built in unit testing framework o...

Distinct summary based on available episode metadata or transcript content.

NOW PLAYING

ByteSized: Testing your Python code

0:00 21:07

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of Code for Thought?

This episode is 21 minutes long.

When was this Code for Thought episode published?

This episode was published on December 15, 2022.

Can I download this Code for Thought episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!