We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85d8ce6 commit b6fcaadCopy full SHA for b6fcaad
1 file changed
tests/logs/test_rp_log_handler.py
@@ -10,9 +10,8 @@
10
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
# See the License for the specific language governing permissions and
12
# limitations under the License
13
-import re
14
15
-# noinspection PyUnresolvedReferences
+from datetime import datetime
16
from unittest import mock
17
18
# noinspection PyPackageRequirements
@@ -68,7 +67,8 @@ def test_emit_simple(mocked_handle):
68
67
call_args = mock_client.log.call_args[0]
69
call_kwargs = mock_client.log.call_args[1]
70
71
- assert re.match("^[0-9]+$", call_args[0])
+ log_time = call_args[0]
+ assert isinstance(log_time, datetime)
72
assert test_message == call_args[1]
73
assert call_kwargs["level"] == "INFO"
74
assert not call_kwargs["attachment"]
0 commit comments