17Nov/22

Running Flask As A Linux Service (Linux / Python)

Continuing on with the Software Engineering & Agile module of my degree, I need to be able to show my Flask web application running. After picking a cloud platform (in this case Azure) I git cloned my repository to the Linux Ubuntu instance that will be running it and realised that I’ve not included a … Continue reading Running Flask As A Linux Service (Linux / Python)
17Nov/22

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

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)
17Nov/22

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): Then it may be because the setUp function of the test class has not set up correctly. Spent some time going round in circles until I … Continue reading AttributeError: ‘FlaskClientTestCase’ object has no attribute ‘app_context’ – Unit Testing (Python)