docstr: Test if the component runs correctly if the input is a mix of paths and ByteStreams.
docstr_tok: ["Test","if","the","component","runs","correctly","if","the","input","is","a","mix","of","paths","and","ByteStreams","."]
code: def test_mixed_sources_run(self, test_files_path):
      """
      Test if the component runs correctly if the input is a mix of paths and ByteStreams.
      """
      sources = [
          test_files_path / "html" / "what_is_haystack.html",
          str(
              (
                  test_files_path / "html" / "what_is_haystack.html"
              ).absolute()
          ),
      ]
      with open(
          test_files_path / "html" / "what_is_haystack.html", "rb"
      ) as f:
          byte_stream = f.read()
          sources.append(ByteStream(byte_stream))
  
      converter = HTMLToDocument()
      results = converter.run(sources=sources)
      docs = results["documents"]
      assert len(docs) == 3
      for doc in docs:
          assert "Haystack" in doc.content
  
file_path: haystack/test/components/converters/test_html_to_document.py
imports: import logging
  import pytest
  from haystack.components.converters import HTMLToDocument
  from haystack.dataclasses import ByteStream
label_desc: Use image node_id 10 for calling the TestHTMLToDocument obj's underlying member method code with example usage: obj.test_mixed_sources_run(test_files_path) without return types