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

Pytest - Test Flow Order

I have a pytest code similar to below... if i run it with --count 3 it will run the test_first 3 ti… Read more Pytest - Test Flow Order

Getting A "can't Pickle Local Object 'liveservertestcase'" Error When Trying To Use Liveservertestcase To Test Flask App

I am getting the error mentioned in the title once trying to run a unittest on my Flask app using L… Read more Getting A "can't Pickle Local Object 'liveservertestcase'" Error When Trying To Use Liveservertestcase To Test Flask App

Pytest - Patched Method Of A Class Does Not Return The Mock Value

My code is fairly simple but i don't understand what is going on : class MyDb : def some_fun… Read more Pytest - Patched Method Of A Class Does Not Return The Mock Value

Can't Get Pytest To Understand Command-line Arguments On Setups

So I have been trying to get pytest to run selenium tests on different environments based on some c… Read more Can't Get Pytest To Understand Command-line Arguments On Setups

Pytest Marks: Mark Entire Directory / Package

I am testing several versions of a component using Pytest. Some tests can run on all versions, some… Read more Pytest Marks: Mark Entire Directory / Package

Docker Runner Pytest Does Not Collect Testcases

I am successfully put ssh-key to docker runner and it can git clone to do dependencies installation… Read more Docker Runner Pytest Does Not Collect Testcases

Py.test With Xdist Is Not Executing Tests Parametrized With Random Values

Does anybody noticed the following strange behaviour for pytest and xdist. When trying to run the t… Read more Py.test With Xdist Is Not Executing Tests Parametrized With Random Values

Getting Error Typeerror: 'module' Object Has No Attribute '__getitem__'

I am trying to write py.test based test cases. my test.py is !flask/bin/python import pytest impo… Read more Getting Error Typeerror: 'module' Object Has No Attribute '__getitem__'