Skip to content Skip to sidebar Skip to footer
Showing posts with the label Testing

How Can I Test If A Pytest Fixture Raises An Exception?

Use case: In a pytest test suite I have a @fixture which raises exceptions if command line options … Read more How Can I Test If A Pytest Fixture Raises An Exception?

Selenium Change Language Browser Chrome / Firefox

I'm trying to test my website with Selenium but I don't manage to change the language of th… Read more Selenium Change Language Browser Chrome / Firefox

Run Tox On Different Python Patch Versions

In short: Is there a way to have tox cycle on patch versions of python? Long: I want the tests to b… Read more Run Tox On Different Python Patch Versions

Online Ide For Python

Is there any web-based IDE that I can use to run quick tests? There're a dozen for PHP and some… Read more Online Ide For Python

Py.test Logging Messages And Test Results/assertions Into A Single File

I am starting to work with py.test at the moment for a new project. We are provisioning Linux serve… Read more Py.test Logging Messages And Test Results/assertions Into A Single File

Python - Using Pytest To Skip Test Unless Specified

Background I have am using pytest to test a web scraper that pushes the data to a database. The cla… Read more Python - Using Pytest To Skip Test Unless Specified

Django Test Not Getting Model Object

I am just scratching the surface of testing in Django. Here is my testing code, inside tests.py: c… Read more Django Test Not Getting Model Object

How Tdd Can Be Applied To Django Class Based Generic Views?

Since Class based Generic Views in Django involve some work by the framework I find very hard to w… Read more How Tdd Can Be Applied To Django Class Based Generic Views?