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

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

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

Pytest - How Can I Pass Pytest Addoption Value To Pytest Parameterize?

I have to to pass an argument in my pytest command which I am storing in pytest addoption. I want t… Read more Pytest - How Can I Pass Pytest Addoption Value To Pytest Parameterize?

Importerror Shows Up With Py.test, But Not When Running The App

Unlike in this question: Importing modules from a sibling directory for use with py.test I can impo… Read more Importerror Shows Up With Py.test, But Not When Running The App

Initing A Pytest Fixture With A Parameter

I have a fixture that creates an object I use in many tests. This Object has a property - priority … Read more Initing A Pytest Fixture With A Parameter

Calling Function That Yields From A Pytest Fixture

In my unit tests, I have two very similar fixtures, and I was hoping to break out some of the funct… Read more Calling Function That Yields From A Pytest Fixture

Flask Unit Testing - How To Reset App.url_map For Each Test?

I'm writing a series of unit tests for a Flask app. The setup for each test is as follows: Cre… Read more Flask Unit Testing - How To Reset App.url_map For Each Test?

How Can I Structure My Folders To Test My Code:

I'm working on a project and would like to write some unit tests for my code. Here is a minima… Read more How Can I Structure My Folders To Test My Code: