Skip to content

Commit

Permalink
Update pycrdt v0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Dec 26, 2023
1 parent f77b3f7 commit 9afe97d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ classifiers = [
dependencies = [
"anyio >=3.6.2,<5",
"aiosqlite >=0.18.0,<1",
"pycrdt >=0.7.0,<0.8.0",
"pycrdt >=0.8.1,<0.9.0",
]

[project.optional-dependencies]
Expand Down
6 changes: 2 additions & 4 deletions tests/test_pycrdt_yjs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import json

import pytest
from anyio import Event, create_task_group, move_on_after, sleep
from pycrdt import Array, Doc, Map
Expand Down Expand Up @@ -73,5 +71,5 @@ async def test_pycrdt_yjs_1(yws_server, yjs_client):
await ytest.clock_run()
ydoc["cells"] = ycells = Array()
ydoc["state"] = ystate = Map()
assert json.loads(str(ycells)) == [{"metadata": {"foo": "bar"}, "source": "1 + 2"}]
assert dict(ystate) == {"state": {"dirty": False}}
assert ycells.to_py() == [{"metadata": {"foo": "bar"}, "source": "1 + 2"}]
assert ystate.to_py() == {"state": {"dirty": False}}

0 comments on commit 9afe97d

Please sign in to comment.