def test_render(): widget = AjaxUploadWidget(ajax_target_path="/ajax", multifile=True) render_result = widget.render("some_name", None) assert isinstance(render_result, str) render_result = widget.render("some_name", (uuid.uuid4(), uuid.uuid4())) assert isinstance(render_result, str) widget = AjaxUploadWidget(ajax_target_path="/ajax", multifile=False) render_result = widget.render("some_name", None) assert isinstance(render_result, str) render_result = widget.render("some_name", (uuid.uuid4(), uuid.uuid4())) assert isinstance(render_result, str)
def test_render(): widget = AjaxUploadWidget(ajax_target_path="/ajax", multifile=True) render_result = widget.render("some_name", None) assert isinstance(render_result, str) render_result = widget.render("some_name", (uuid.uuid4(), uuid.uuid4())) assert isinstance(render_result, str) widget = AjaxUploadWidget(ajax_target_path="/ajax", multifile=False) render_result = widget.render("some_name", None) assert isinstance(render_result, str) render_result = widget.render("some_name", (uuid.uuid4(), uuid.uuid4())) assert isinstance(render_result, str)
def test_render(): user = UserFactory() widget = AjaxUploadWidget(multifile=True, user=user) render_result = widget.render("some_name", None) assert isinstance(render_result, str) render_result = widget.render("some_name", (uuid.uuid4(), uuid.uuid4())) assert isinstance(render_result, str) widget = AjaxUploadWidget(multifile=False, user=user) render_result = widget.render("some_name", None) assert isinstance(render_result, str) render_result = widget.render("some_name", (uuid.uuid4(), uuid.uuid4())) assert isinstance(render_result, str)