Using GitHub Actions To Add Continuous Integration (CI) To A Project (GitHub / Python)

A GitHub Actions job failure email

In this blog post I will be discussing Continuous Integration (CI) with GitHub Actions. Readers of previous blog entries may remember that I’ve tackled Continuous Integration (CI) with GitLab previously (see: https://geektechstuff.com/2021/04/05/python-unit-test-and-some-ci-via-gitlab-python/ ) and that last autumn (2021) I got into more testing (see: https://geektechstuff.com/2021/10/06/personal-update-django-and-mvc-mtv/ ).  Thankfully both have helped as the current module of my degree apprenticeship is … Continue reading Using GitHub Actions To Add Continuous Integration (CI) To A Project (GitHub / Python)

AttributeError: ‘FlaskClientTestCase’ object has no attribute ‘app_context’ – Unit Testing (Python)

Less of blog post and more of a reminder to myself. When using Flask and Unit Testing with Python, if either of the below errors occur (or something similar): AttributeError: 'FlaskClientTestCase' object has no attribute 'client' AttributeError: 'FlaskClientTestCase' object has no attribute 'app_context' Then it may be because the setUp function of the test class … Continue reading AttributeError: ‘FlaskClientTestCase’ object has no attribute ‘app_context’ – Unit Testing (Python)

Tackling Fractions With Python

Python function to run call on other functions depending on user input

Fractions, not something I've really looked at since my school days. However with home schooling currently taking place here in the UK due to another Coronavirus lockdown, it is something that I've been refreshing my knowledge on this week. Note: https://www.calculatorsoup.com/calculators/math/fractions.php provides an online calculator to help with fractions. The site also provides the formulas … Continue reading Tackling Fractions With Python

Real World Python – Book Review (Python)

Front cover of Real World Python Book

However, I also have periods where a form of writer’s block kicks in and wonder, “What else could I use Python for?”. As if by magic, Lee Vaughan has answered with “Real World Python” which contains examples of real-world problems being answered by Python and then expands on the solutions with fun challenge projects and further reading.

Object Oriented Programming (Python)

The 2017 school term has begun and in the next few weeks I'm looking forward to starting the new term of the schools code club. In the mean time I am continuing my own learning with some object oriented programming (Python) via Future Learn. The course can be found here: https://www.futurelearn.com/courses/object-oriented-principles/ I'm currently on week … Continue reading Object Oriented Programming (Python)