Skip to content

Commit

Permalink
Fixed minor issue with event test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
bsummers-tc committed Feb 28, 2024
1 parent 094581e commit eb766c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/api/tc/v2/batch/test_group_interface_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ def test_event(self, name, description, label, tag, tcex: TcEx):
"""Test event creation"""
batch = tcex.api.tc.v2.batch(owner='TCI')
xid = batch.generate_xid(['pytest', 'event', name])
ti = batch.event(name=name, event_data='2008-12-12T12:12:12Z', xid=xid)
ti = batch.event(name=name, event_date='2008-12-12T12:12:12Z', xid=xid)
# ti = batch.event(name=name, event_date='2008-12-12', xid=xid)
ti.status = 'Escalated'
ti.attribute(attr_type='Description', attr_value=description, displayed=True)
ti.security_label(name=label, description='Pytest Label Description', color='ffc0cb')
Expand Down
2 changes: 1 addition & 1 deletion tests/api/tc/v2/batch/test_group_interface_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def test_event(self, name, description, label, tag, tcex: TcEx):
xid = batch.generate_xid(['pytest', 'event', name])
ti = cast(
Group,
batch.group(group_type='Event', name=name, event_data='2008-12-12T12:12:12Z', xid=xid),
batch.group(group_type='Event', name=name, event_date='2008-12-12T12:12:12Z', xid=xid),
)
ti.status = 'Escalated'
ti.attribute(attr_type='Description', attr_value=description, displayed=True)
Expand Down

0 comments on commit eb766c9

Please sign in to comment.