Part of lp.code.xmlrpc.tests.test_codehosting View In Hierarchy
A 'frontend' here means something that provides access to the various XML-RPC endpoints, object factories and 'database' methods needed to write unit tests for XML-RPC endpoints.
All of these methods are gathered together in this class so that
alternative implementations can be provided, see InMemoryFrontend
.
Method | getCodehostingEndpoint | Return the branch filesystem endpoint for testing. |
Method | getLaunchpadObjectFactory | Return the Launchpad object factory for testing. |
Method | getBranchLookup | Return an implementation of IBranchLookup . |
Method | getLastActivity | Get the last script activity with 'activity_name'. |
IBranchLookup
.
Tests should use this to get the branch set they need, rather than using 'getUtility(IBranchSet)'. This allows in-memory implementations to work correctly.