mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
fix error management bug and improve examples automation (#717)
* add build to the make examples cmd so that it automates more to the user * temporarily improve error managament when executing eval until we properly refactor the whole io and error workflow * add minimal test for format_mime
This commit is contained in:
@@ -20,3 +20,11 @@ class TestElement:
|
||||
assert pyscript.document.querySelector.call_count == 1
|
||||
pyscript.document.querySelector.assert_called_with("#something")
|
||||
assert real_element == call_result
|
||||
|
||||
|
||||
def test_format_mime_str():
|
||||
obj = "just a string"
|
||||
|
||||
res = pyscript.format_mime(obj)
|
||||
assert res[0] == obj
|
||||
assert res[1] == "text/plain"
|
||||
|
||||
Reference in New Issue
Block a user