Testing a web application with pytest in two simple examples





Flask application testing is usually associated with web frameworks which automate the tests performed across different web browsers, e.g. Selenium. However, not always there is a need to use such a complex tool and quite often most of the web application can be tested with the popular and universal pytest framework.

Testing web applications with pytest

Continue reading “Testing a web application with pytest in two simple examples”

Web-gui for Python logs





Logging can help you better understand the flow of a program and discover undesirable behaviour, which you might not even consider while developing. Logs give you information about scenarios that an application is going through. You can label this information according to its importance: debug, info, warning and errors. Logs can provide more insights than a stack trace by telling you what the program state was before it arrived at the line of code where the error occurred.

Logs browser in Flask
Logs browser in Flask

Continue reading “Web-gui for Python logs”