Skip to content

Commit ce85d2a

Browse files
author
Aravindhan Palanisamy
committed
refactor
1 parent 09768cf commit ce85d2a

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

docs/getting_started.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ default connection. The default connection depends on your environment.
337337
With a :class:`.TestPlanClient` object, you can:
338338

339339
* Create, query, get, update, schedule and delete TestPlans
340+
* Create, query and delete test plan templates
340341

341342
Examples
342343
~~~~~~~~

examples/test_plan/test_plans.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from datetime import datetime
2+
13
from nisystemlink.clients.core._http_configuration import HttpConfiguration
24
from nisystemlink.clients.test_plan import TestPlanClient
35
from nisystemlink.clients.test_plan.models import (
@@ -91,8 +93,12 @@
9193
test_plans=[
9294
ScheduleTestPlanRequest(
9395
id=created_test_plan_id,
94-
planned_start_date_time="2025-05-20T15:07:42.527Z",
95-
estimated_end_date_time="2025-05-20T15:07:42.527Z",
96+
planned_start_date_time=datetime.strptime(
97+
"2025-05-20T15:07:42.527Z", "%Y-%m-%dT%H:%M:%S.%fZ"
98+
),
99+
estimated_end_date_time=datetime.strptime(
100+
"2025-05-22T15:07:42.527Z", "%Y-%m-%dT%H:%M:%S.%fZ"
101+
),
96102
system_id="fake-system",
97103
)
98104
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
from nisystemlink.clients.test_plan._test_plan_client import TestPlanClient
1+
from ._test_plan_client import TestPlanClient
22

33
# flake8: noqa
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# flake8: noqa

0 commit comments

Comments
 (0)