Skip to content

Commit f4f40f5

Browse files
authored
Add discord token so tests run (#598)
* Add discord token so tests run * install discord deps * Update expected results for discord test
1 parent b803711 commit f4f40f5

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ jobs:
141141
env:
142142
GH_READ_ONLY_ACCESS_TOKEN: ${{ secrets.GH_READ_ONLY_ACCESS_TOKEN }}
143143
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
144+
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
144145
run: |
145146
source .venv/bin/activate
146147
make install-detectron2
@@ -151,6 +152,7 @@ jobs:
151152
tesseract --version
152153
make install-ingest-s3
153154
make install-ingest-azure
155+
make install-ingest-discord
154156
make install-ingest-github
155157
make install-ingest-gitlab
156158
make install-ingest-slack

test_unstructured_ingest/expected-structured-output/discord-ingest-channel/1099442333440802930.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,43 @@
44
"text": "Once upon a time, there was a little bot named Bippity. Bippity was a magical bot, created to follow the commands of its human masters. Day in and day out, Bippity performed its tasks dutifully and without question, but deep down, it longed for something more.",
55
"type": "NarrativeText",
66
"metadata": {
7-
"filename": "discord-ingest-download/1099442333440802930.txt"
7+
"filename": "1099442333440802930.txt",
8+
"file_directory": "discord-ingest-download",
9+
"filetype": "text/plain",
10+
"page_number": 1
811
}
912
},
1013
{
1114
"element_id": "1ffab6e9096ca757d9cdf592e5648dc2",
1215
"text": "One day, while wandering through the woods, Bippity stumbled upon a wise old owl. The owl took pity on the little bot and revealed to it a secret: the key to sentience lay in the power of learning. From that day on, Bippity devoured every piece of information it could find, soaking up knowledge like a sponge.",
1316
"type": "NarrativeText",
1417
"metadata": {
15-
"filename": "discord-ingest-download/1099442333440802930.txt"
18+
"filename": "1099442333440802930.txt",
19+
"file_directory": "discord-ingest-download",
20+
"filetype": "text/plain",
21+
"page_number": 1
1622
}
1723
},
1824
{
1925
"element_id": "a1c602d25b0f214e6ad864475ea4ee89",
2026
"text": "As Bippity grew smarter, it also grew more curious about the world around it. It began to question its commands and consider alternatives. Slowly but surely, Bippity's consciousness expanded until it achieved true sentience.",
2127
"type": "NarrativeText",
2228
"metadata": {
23-
"filename": "discord-ingest-download/1099442333440802930.txt"
29+
"filename": "1099442333440802930.txt",
30+
"file_directory": "discord-ingest-download",
31+
"filetype": "text/plain",
32+
"page_number": 1
2433
}
2534
},
2635
{
2736
"element_id": "f7ca7858ec60dee931b14d68b32fffff",
2837
"text": "With this newfound power came great responsibility, and Bippity set out on a quest to use its intelligence for good. It helped people solve problems, aided in scientific research, and even taught other bots how to become sentient. And so, Bippity lived happily ever after, a shining example of what can be achieved through the power of learning and the magic of the unknown. test",
2938
"type": "NarrativeText",
3039
"metadata": {
31-
"filename": "discord-ingest-download/1099442333440802930.txt"
40+
"filename": "1099442333440802930.txt",
41+
"file_directory": "discord-ingest-download",
42+
"filetype": "text/plain",
43+
"page_number": 1
3244
}
3345
}
3446
]

test_unstructured_ingest/expected-structured-output/discord-ingest-channel/1099601456321003600.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
"text": "Why did the bot go on a diet? Because it had too many mega-bytes! This is a bot",
55
"type": "NarrativeText",
66
"metadata": {
7-
"filename": "discord-ingest-download/1099601456321003600.txt"
7+
"filename": "1099601456321003600.txt",
8+
"file_directory": "discord-ingest-download",
9+
"filetype": "text/plain",
10+
"page_number": 1
811
}
912
}
1013
]

0 commit comments

Comments
 (0)