From 6de141dd3a60b6dd20fbcd0f67a6907a44377a4a Mon Sep 17 00:00:00 2001 From: ShivanS93 Date: Sun, 19 Sep 2021 11:33:32 +1200 Subject: [PATCH] more readmes --- README.MD | 15 +++++++++++++++ intro_pytest/README.MD | 18 ++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 intro_pytest/README.MD diff --git a/README.MD b/README.MD index e69de29..8ba74c3 100644 --- a/README.MD +++ b/README.MD @@ -0,0 +1,15 @@ +# Learning Python + +By Shivan Sivakumaran. Started 18th Setempber 2021. + +In an effort to solidify my knowledge in Python as well as help others I have decided to create a collection of my Python 'learnings'. + +## Introduction to Pytest + +18th September 2021 + +Pytest is a great tool that allows us to write automated test for our code. This ensures our code is both robust and professional. + +[Check it out!](https://git.chch.tech/Shivan/learning_python/src/branch/main/intro_pytest) + +## What's next? diff --git a/intro_pytest/README.MD b/intro_pytest/README.MD new file mode 100644 index 0000000..30e361f --- /dev/null +++ b/intro_pytest/README.MD @@ -0,0 +1,18 @@ +# Introduction to Pytest + +By Shivan Sivakumaran. 18th September 2021 + +## An overview + +[Pytest is a python package](https://docs.pytest.org/en/6.2.x) where we write automated tests for our coded project. The reason we write tests for our code is to ensure the code runs the way we want. Writing automated tests can also make the process of testing our code easier, faster and more consistent. + +We can develop tests first, in the case of test-driven development, and then build our code while using these automated tests to ensure we are heading in the correct direction. + +We can also use the tests to ensure the changes we make to the code don't cause untended errors later in the pathway of our development. + +Most modern packages come with automated testing code, so it is a great way to make your code look professional. + +## Further resources + +- [Blog post](https://shivansivakumaran.com/coding/introduction-to-pytest/) +- [Video](https://www.youtube.com/watch?v=FNCVFNDVCCI)