mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00
Python: Add support for exporting multiple components
This commit is contained in:
parent
a3435d218f
commit
0c7d2062a5
10 changed files with 76 additions and 51 deletions
|
@ -12,9 +12,13 @@ def test_load_file(caplog):
|
|||
|
||||
assert "The property 'color' has been deprecated. Please use 'background' instead" in caplog.text
|
||||
|
||||
assert list(module.__dict__.keys()) == ["App"]
|
||||
assert len(list(module.__dict__.keys())) == 2
|
||||
assert "App" in module.__dict__
|
||||
assert "Diag" in module.__dict__
|
||||
instance = module.App()
|
||||
del instance
|
||||
instance = module.Diag()
|
||||
del instance
|
||||
|
||||
|
||||
def test_load_file_fail():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue