TM1 Testcontainers docs Python
Every part of the library, with its members and examples in Python. New here? Start with the quick start, then the walkthrough Test your code against a real TM1.
Start here
- RequiresTm1Runs a test class or method against a real TM1 server, and skips it when there isn't one.
- Tm1SourceWhere a Tm1ServerContainer gets TM1 Server from.
- Tm1ServerContainerA TM1 server in Docker, for tests, built on the tm1-server image.
- PlanningAnalyticsEnvironmentA whole Planning Analytics environment for tests, wired together on one Docker network.
Walkthroughs
Writing tests
RequiresCognosRuns a test class or method that needs IBM Cognos Analytics (CAM security) as well as TM1, and skips it when either isn't available.RequiresPawRuns a test class or method against a real Planning Analytics Workspace and TM1 server, and skips it when either isn't available.RequiresTm1Runs a test class or method against a real TM1 server, and skips it when there isn't one.RequiresTm1WebRuns a test class or method against real TM1 Web and TM1 servers, and skips it when either isn't available.
Containers
CognosContainerIBM Cognos Analytics in Docker, for tests, built on the cognos-server image.NamespaceA namespace the test users are in, and how tm1-server names its users and groups (CAMIDs) in it.UserA test user.KeycloakContainerKeycloak in Docker, as the OpenID Connect provider for a CognosContainer's OIDC namespace (withKeycloak).PawContainerIBM Planning Analytics Workspace (PAW) Local in Docker, for tests, started from the user's own PAW Local zip against a Tm1ServerContainer.PlanningAnalyticsEnvironmentA whole Planning Analytics environment for tests, wired together on one Docker network.Tm1AdminServerContainerA TM1 Admin Server on its own, for tests with several TM1 servers.Tm1ServerContainerA TM1 server in Docker, for tests, built on the tm1-server image.Tm1WebContainerTM1 Web (IBM Planning Analytics Spreadsheet Services) in Docker, for tests, built on the tm1-web image.
Where TM1 comes from
CognosSourceWhere a CognosContainer gets IBM Cognos Analytics from.PawSourceWhere a PawContainer gets Planning Analytics Workspace from.Tm1SeedObjects the image puts into an empty database on first start (its TM1_SEED setting).Tm1SourceWhere a Tm1ServerContainer gets TM1 Server from.Tm1WebSourceWhere a Tm1WebContainer gets TM1 Web from.