Skip to content

Commit

Permalink
change assert for timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Dipin Nair committed Feb 10, 2025
1 parent 1cfff12 commit 17c3196
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/embedding/test_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"""Message manager test"""

import os
import re

import pytest

Expand Down Expand Up @@ -121,7 +122,7 @@ def test_message_get(embedded_app, assets, capsys):

assert str(_msg1.Severity) == "Warning"
assert "Image file not found" in _msg1.DisplayString
assert "AM" in str(_msg1.TimeStamp) or "PM" in str(_msg1.TimeStamp)
assert re.search(r"\d", str(_msg1.TimeStamp))
print(_msg1.StringID, _msg1.Source, _msg1.Location, _msg1.RelatedObjects)
captured = capsys.readouterr()
printed_output = captured.out.strip()
Expand Down

0 comments on commit 17c3196

Please sign in to comment.