Skip to content

Commit fe6d87d

Browse files
authored
fix: fix example docs (#10)
1 parent d55a695 commit fe6d87d

File tree

3 files changed

+52
-2
lines changed

3 files changed

+52
-2
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
MIME-Version: 1.0
2+
Date: Fri, 23 Dec 2022 12:08:48 -0600
3+
Message-ID: <CAPgNNXSzLVJ-d1OCX_TjFgJU7ugtQrjFybPtAMmmYZzphxNFYg@mail.gmail.com>
4+
Subject: Fake email with attachment
5+
From: Mallori Harrell <[email protected]>
6+
To: Mallori Harrell <[email protected]>
7+
Content-Type: multipart/mixed; boundary="0000000000005d654405f082adb7"
8+
9+
--0000000000005d654405f082adb7
10+
Content-Type: multipart/alternative; boundary="0000000000005d654205f082adb5"
11+
12+
--0000000000005d654205f082adb5
13+
Content-Type: text/plain; charset="UTF-8"
14+
15+
Hello!
16+
17+
Here's the attachments!
18+
19+
It includes:
20+
21+
- Lots of whitespace
22+
- Little to no content
23+
- and is a quick read
24+
25+
Best,
26+
27+
Mallori
28+
29+
--0000000000005d654205f082adb5
30+
Content-Type: text/html; charset="UTF-8"
31+
Content-Transfer-Encoding: quoted-printable
32+
33+
<div dir=3D"ltr">Hello!=C2=A0<div><br></div><div>Here&#39;s the attachments=
34+
!</div><div><br></div><div>It includes:</div><div><ul><li style=3D"margin-l=
35+
eft:15px">Lots of whitespace</li><li style=3D"margin-left:15px">Little=C2=
36+
=A0to no content</li><li style=3D"margin-left:15px">and is a quick read</li=
37+
></ul><div>Best,</div></div><div><br></div><div>Mallori</div><div dir=3D"lt=
38+
r" class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div dir=3D=
39+
"ltr"><div><div><br></div></div></div></div></div>
40+
41+
--0000000000005d654205f082adb5--
42+
--0000000000005d654405f082adb7
43+
Content-Type: text/plain; charset="US-ASCII"; name="fake-attachment.txt"
44+
Content-Disposition: attachment; filename="fake-attachment.txt"
45+
Content-Transfer-Encoding: base64
46+
X-Attachment-Id: f_lc0tto5j0
47+
Content-ID: <f_lc0tto5j0>
48+
49+
SGV5IHRoaXMgaXMgYSBmYWtlIGF0dGFjaG1lbnQh
50+
--0000000000005d654405f082adb7--
4.47 MB
Binary file not shown.

libs/unstructured/tests/integration_tests/test_document_loaders.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from langchain_unstructured import UnstructuredLoader
99

1010
EXAMPLE_DOCS_DIRECTORY = str(
11-
Path(__file__).parent.parent.parent.parent.parent
12-
/ "community/tests/integration_tests/examples/"
11+
Path(__file__).parent.parent.parent
12+
/ "example_docs/"
1313
)
1414
UNSTRUCTURED_API_KEY = os.getenv("UNSTRUCTURED_API_KEY")
1515

0 commit comments

Comments
 (0)