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

How To Locally Unit Test Python 3 App Engine Application?

I have testbed setup locally to test python2.7 based app engine application. As part of the python3… Read more How To Locally Unit Test Python 3 App Engine Application?

Define A Pytest Fixture Providing Multiple Arguments To Test Function

With pytest, I can define a fixture like so: @pytest.fixture def foo(): return 'blah' … Read more Define A Pytest Fixture Providing Multiple Arguments To Test Function

How To Use Logging, Pytest Fixture And Capsys?

I am trying to unit-test some algorithm that uses logging library. I have a fixture that creates a … Read more How To Use Logging, Pytest Fixture And Capsys?

Where Do The Python Unit Tests Go?

If you're writing a library, or an app, where do the unit test files go? It's nice to sep… Read more Where Do The Python Unit Tests Go?

Double Parameterization

So I have a set of tests where I'd like to test multiple versions of a solution. Currently I ha… Read more Double Parameterization

Python Unittest: Reporting Exception As Failure

I want to check for an exception in Python unittest, with the following requirements: Needs to be … Read more Python Unittest: Reporting Exception As Failure

Py.test Passing Results Of One Test To Another

Currently I have test looking like this: @pytest.mark.parametrize('param', [1,2,3]) def tes… Read more Py.test Passing Results Of One Test To Another

How Do I Unit Test The Methods In A Method Object?

I've performed the 'Replace Method with Method Object' refactoring described by Beck. N… Read more How Do I Unit Test The Methods In A Method Object?