Ejemplo n.º 1
0
 def test_with_Server_resources(self) -> None:
     from ext_package_no_main import AModel
     model = AModel()
     bundle = beb.bundle_for_objs_and_resources([model], "server")
     assert len(bundle.js_files) == 2
     assert len(bundle.js_raw) == 1
Ejemplo n.º 2
0
 def test_with_INLINE_resources(self) -> None:
     from ext_package_no_main import AModel
     model = AModel()
     bundle = beb.bundle_for_objs_and_resources([model], "inline")
     assert len(bundle.js_files) == 0
     assert len(bundle.js_raw) == 3