This article appeared as a Pybites email first. If you like it consider joining our friends list for weekly Python, developer and (!) mindset content … Last year I built a cool API to post code images using our pybites-carbon tool. It will store the tip code in a database and store the code image in an… Continue reading Building a 500 line API regression test suite
Articles on fixtures
10 Cool Pytest Tips You Might Not Know About
By Bob Belderbos on 26 February 2021
Here are 10 things we learned writing pytest code that might come in handy.
How to Test Your Django App with Selenium and pytest
By Bob Belderbos on 22 November 2018
In this article I will show you how to test a Django app with pytest and Selenium. We will test our CodeChalleng.es platform comparing the logged out homepage vs the logged in dashboard. We will navigate the DOM matching elements and more. Overall you should learn enough Selenium and pytest to start testing a web page including a login. Sounds exciting? Let’s dive straight in!
Enough pytest to be Dangerous, 10 Things I Learned Writing Tests for 100 Python (Bites of Py) Exercises
By Bob Belderbos on 7 June 2018
We hit 100 Bite exercises on our Code Platform and that means we have written tests for 100 exercises. In this article I share 10 things I learned about writing test code and pytest.
All You Need to Know to Start Using Fixtures in Your pytest Code
By Bob Belderbos on 15 March 2018
Setting up test cases for code that manage data can be challenging but it’s an important skill to reliably test your code. You might have heard of the setup and teardown methods in unittest. In pytest you use fixtures and as you will discover in this article they are actually not that hard to set up. Fixtures have been labelled pytest’s killer feature so let’s explore them in this article using a practical example.
Code Challenge 39 – Writing Tests With Pytest – Review
By PyBites Team on 1 November 2017
In this article we review last week’s Writing Tests With Pytest code challenge.
Code Challenge 39 – Writing Tests With Pytest
By PyBites Team on 5 October 2017
Hi Pythonistas, let’s add some more challenges for October. Following our Python testing with pytest book review we let you write some tests with this awesome framework.
Python Testing With Pytest
By Bob Belderbos on 25 September 2017
Review of Brian Okken’s new pytest book.