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

Twitter digest 2017 week 27

Posted by PyBites on Sun 09 July 2017 in Digest • Tagged with twitter, news, tips, python, pybites, raspberry pi, matplotlib, scikit, Django, flask, ubuntu, Lisp, algorithms, math, pytest, AWS, scrapy, jupyter • 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

OOP Beyond the Basics: Using Properties for Encapsulation, Computation and Refactoring

Posted by Bob on Wed 31 May 2017 in Concepts • Tagged with oop, property, decorators, encapsulation, computation, dunder, refactoring, pytest, 2vs3, getter, setter • 4 min read

In this article I share my learning of the property decorator coding a simple Account class. I think it's an unmissable tool in your (Python) OOP toolkit.


Continue reading

Twitter digest 2017 week 21

Posted by PyBites on Sun 28 May 2017 in Digest • Tagged with twitter, news, tips, python, books, pycon2017, pip, PEP, pyPI, Elizabeth, machine learning, boilerplates, open source, pycharm, copy, pytest, memory, tkinter, bokeh, flask, dicts, gitsuggest • 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 09 - The With Statement and Context Managers - Review

Posted by PyBites on Sat 11 March 2017 in Challenges • Tagged with codechallenges, code review, learning, with, contextmanagers, Paramiko, pytest • 2 min read

It's end of the week again so we review the code challenge of this week. It's never late to sign up, just fork our challenges repo and start coding.


Continue reading

Learning from Python mistakes

Posted by Bob on Wed 28 December 2016 in Learning • Tagged with bestpractices, pep8, virtualenv, cleancode, logging, pytest, ebook, refactoring, gotchas • 2 min read

In this post I summarize some great lessons Mike Pirnat shared in his free ebook 'How to make mistakes in Python'


Continue reading