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?

In Pytest, How Can I Figure Out If A Test Failed? (from "request")

I'm using Selenium with PYTEST to test a site. I would like to take a screenshot of the page wh… Read more In Pytest, How Can I Figure Out If A Test Failed? (from "request")

Extract Functions From Python File And Write Them To Other Files

i have writted a python file with a lot of functions and i decided i want to split all of them to d… Read more Extract Functions From Python File And Write Them To Other Files

Test Framework For Testing Embedded Systems In Python

I would like to test the features of an embedded device. To simplify I can say it is an humanoid ro… Read more Test Framework For Testing Embedded Systems In Python

Choosing The Youtube Video Quality By Using Selenium In Python

I'm having an issue to select the video quality resolution from the youtube video https://www.y… Read more Choosing The Youtube Video Quality By Using Selenium In Python

Python Unittest: Fail Due To Import From Same Folder

the question seems pretty trivial, but I could not find a single answer to it online. Heres my setu… Read more Python Unittest: Fail Due To Import From Same Folder