The congress.tests.policy_fixture Module

class congress.tests.policy_fixture.PolicyFixture

Bases: fixtures.fixture.Fixture

setUp()
class congress.tests.policy_fixture.RoleBasedPolicyFixture(role=’admin’, *args, **kwargs)

Bases: fixtures.fixture.Fixture

setUp()

Set up the env for test.

Copy live policy.json file and convert all actions to allow users of the specified role only.