Skip to content

Commit

Permalink
test: fix deprecated datetime serialisation (follow-up to #2314)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Feb 23, 2024
1 parent bdd9c5d commit 51bab39
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/async/test_assertions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# limitations under the License.

import asyncio
import datetime
import re
from datetime import datetime

import pytest

Expand Down Expand Up @@ -183,7 +183,11 @@ async def test_assertions_locator_to_have_js_property(
)
await expect(page.locator("div")).to_have_js_property(
"foo",
{"a": 1, "b": "string", "c": datetime.utcfromtimestamp(1627503992000 / 1000)},
{
"a": 1,
"b": "string",
"c": datetime.datetime.fromtimestamp(1627503992000 / 1000),
},
)


Expand Down

0 comments on commit 51bab39

Please sign in to comment.