Click here to code!

All You Need to Know to Start Using Fixtures in Your pytest Code

Posted by Bob on Thu 15 March 2018 in Testing • Tagged with pytest, fixtures, testing, refactoring, pytest-cov, coverage • 11 min read

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.


Continue reading

Twitter Digest 2018 Week 10

Posted by PyBites on Sun 04 March 2018 in Digest • Tagged with twitter, news, pybites, code challenges, Flask, reds, Jupyter, web scraping, Matplotlib, OpenCV, TensorFlow, datetime, testing, celery, vim, regex, GitHub • 2 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading

Code Challenge 39 - Writing Tests With Pytest - Review

Posted by PyBites on Wed 01 November 2017 in Challenges • Tagged with pytest, testing, fixtures, pytip • 1 min read

In this article we review last week's Writing Tests With Pytest code challenge.


Continue reading

Bootstrap Your Next Python Project With Cookiecutter

Posted by Bob on Wed 25 October 2017 in Tools • Tagged with Cookiecutter, setup, testing, packages, modules, Bottle • 3 min read

I finally did it! I bootstrapped my first project with Cookiecutter. There is a lot to discover but wow this tool can save you a ton of time, making your project more professional.


Continue reading

Code Challenge 39 - Writing Tests With Pytest

Posted by PyBites on Thu 05 October 2017 in Challenge • Tagged with pytest, testing, unittest, fixtures, BetterCodeHub, pytest-cov, CI, opensource, Hacktoberfest, TalkPython • 2 min read

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.


Continue reading

Python Testing With Pytest

Posted by Bob on Mon 25 September 2017 in Books • Tagged with pytest, testing, books, tox, Jenkins, fixtures, unittest, q&a • 3 min read

Review of Brian Okken's new pytest book.


Continue reading

Code Challenge 32 - Test a Simple Django App With Selenium - Review

Posted by PyBites on Mon 21 August 2017 in Challenges • Tagged with codechallenges, Django, 100DaysOfDjango, Selenium, Testing • 1 min read

In this article we review last week's Test a Simple Django App With Selenium code challenge.


Continue reading

Code Challenge 32 - Test a Simple Django App With Selenium

Posted by PyBites on Tue 15 August 2017 in Challenge • Tagged with codechallenges, Django, 100DaysOfDjango, Selenium, Testing • 3 min read

Hi Pythonistas, a new week, a new 'bite' of Python goodness. As anticipated this week we dedicate a challenge to Selenium testing. We think this is a cool skill to add to your web dev + testing repertoire.


Continue reading

Code Challenge 30 - The Art of Refactoring: Improve Your Code - Review

Posted by PyBites on Mon 07 August 2017 in Challenges • Tagged with codechallenges, refactoring, code review, testing, bestpractices, cleancode, bettercodehub, Sig, Flask, authentication, my first script • 2 min read

In this article we review last week's The Art of Refactoring: Improve Your Code code challenge. We're excited to have done 30 challenges so far and it feels like we only got started. Prepare for more to come!


Continue reading

Code Challenge 30 - The Art of Refactoring: Improve Your Code

Posted by PyBites on Tue 01 August 2017 in Challenges • Tagged with codechallenges, refactoring, code review, testing, packaging, bestpractices, pythonic, pep8, cleancode • 2 min read

Hi Pythonistas, a new week, a new 'bite' of Python coding. Wow challenge 30 already! This week we let you hone your refactoring skills. Learn, code, PR submit (don't be shy) and above all have fun!


Continue reading