File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1010# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111# See the License for the specific language governing permissions and
1212# limitations under the License
13- import re
1413
15- # noinspection PyUnresolvedReferences
14+ from datetime import datetime
1615from unittest import mock
1716
1817# noinspection PyPackageRequirements
@@ -68,7 +67,8 @@ def test_emit_simple(mocked_handle):
6867 call_args = mock_client .log .call_args [0 ]
6968 call_kwargs = mock_client .log .call_args [1 ]
7069
71- assert re .match ("^[0-9]+$" , call_args [0 ])
70+ log_time = call_args [0 ]
71+ assert isinstance (log_time , datetime )
7272 assert test_message == call_args [1 ]
7373 assert call_kwargs ["level" ] == "INFO"
7474 assert not call_kwargs ["attachment" ]
You can’t perform that action at this time.
0 commit comments