The oslo_context.fixture Module

class oslo_context.fixture.ClearRequestContext

Bases: fixtures.fixture.Fixture

Clears any cached RequestContext

This resets RequestContext at the beginning and end of tests that use this fixture to ensure that we have a clean slate for running tests, and that we leave a clean slate for other tests that might run later in the same process.

setUp()