RequiresTm1Web
from skipcheck_tm1_testcontainers import RequiresTm1WebRuns a test class or method against real TM1 Web and TM1 servers, 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. Declare a
Tm1WebContainer parameter to get the shared TM1 Web, which lists and logs on to the shared TM1 server:
@pytest.mark.requires_tm1_web
def test_opens_a_websheet(tm1_web: Tm1WebContainer) -> None:
# http://localhost:54321/tm1web/, which lists the shared TM1 server
assert tm1_web.url.endswith("/tm1web/")
# ...
Members
NO_SOURCE_MESSAGE static | Why tests skip when no TM1 Web source is configured, and what to set. |
mark property |
NO_SOURCE_MESSAGE
staticNO_SOURCE_MESSAGEWhy tests skip when no TM1 Web source is configured, and what to set.
mark
propertymark