mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Upgrade to PyO3 0.24
The main change is that Rust paths are mapped to pathlib.Path, which changes our API (stricter).
This commit is contained in:
parent
0c51f69b0a
commit
826ad7a865
10 changed files with 51 additions and 51 deletions
|
@ -4,6 +4,7 @@
|
|||
from slint import slint as native
|
||||
from slint import models as models
|
||||
import typing
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def test_model_notify() -> None:
|
||||
|
@ -31,7 +32,7 @@ def test_model_notify() -> None:
|
|||
|
||||
}
|
||||
""",
|
||||
"",
|
||||
Path(""),
|
||||
).component("App")
|
||||
assert compdef is not None
|
||||
|
||||
|
@ -62,7 +63,7 @@ def test_model_from_list() -> None:
|
|||
in-out property<[int]> data: [1, 2, 3, 4];
|
||||
}
|
||||
""",
|
||||
"",
|
||||
Path(""),
|
||||
).component("App")
|
||||
assert compdef is not None
|
||||
|
||||
|
@ -110,7 +111,7 @@ def test_rust_model_sequence() -> None:
|
|||
in-out property<[int]> data: [1, 2, 3, 4, 5];
|
||||
}
|
||||
""",
|
||||
"",
|
||||
Path(""),
|
||||
).component("App")
|
||||
assert compdef is not None
|
||||
|
||||
|
@ -141,7 +142,7 @@ def test_model_writeback() -> None:
|
|||
|
||||
}
|
||||
""",
|
||||
"",
|
||||
Path(""),
|
||||
).component("App")
|
||||
assert compdef is not None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue