skipcheck

TM1 Testcontainers · Docs · Writing tests

RequiresPaw

from skipcheck_tm1_testcontainers import RequiresPaw

Runs a test class or method against a real Planning Analytics Workspace and TM1 server, and skips it when either isn't available.

It includes RequiresTm1, so tests also skip without Docker or a Tm1Source, and can still take a Tm1ServerContainer parameter. They also skip without a PawSource, or when IBM's PAW license hasn't been accepted with PAW_ACCEPT_LICENSE=true. Declare a PawContainer parameter to get the shared PAW, which logs users on to the shared TM1 server:

@pytest.mark.requires_paw
def test_opens_paw(paw: PawContainer) -> None:
    # http://localhost:54321/, which logs on to the shared TM1 server
    assert paw.url.startswith("http://")
    # ...

Members

NO_SOURCE_MESSAGE staticWhy tests skip when no PAW source is configured, and what to set.
NO_LICENSE_MESSAGE staticWhy tests skip when IBM's PAW license hasn't been accepted, and what to set.
mark property

NO_SOURCE_MESSAGE

static
NO_SOURCE_MESSAGE

Why tests skip when no PAW source is configured, and what to set.

NO_LICENSE_MESSAGE

static
NO_LICENSE_MESSAGE

Why tests skip when IBM's PAW license hasn't been accepted, and what to set.

mark

property
mark