projects
/
ihaspeks
/
aptbot-ihaspeks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d0259b
)
fix
author
Georgios Atheridis
<georgios@atheridis.org>
Sat, 1 Jul 2023 11:02:21 +0000
(12:02 +0100)
committer
Georgios Atheridis
<georgios@atheridis.org>
Sat, 1 Jul 2023 11:02:21 +0000
(12:02 +0100)
ihaspeks/tools/test_message.py
patch
|
blob
|
history
diff --git
a/ihaspeks/tools/test_message.py
b/ihaspeks/tools/test_message.py
index aebcbcb540bcf6eb332d8e1c91029948670713d8..86cfa0d8684f000774d026c9f2230d310c47f400 100644
(file)
--- a/
ihaspeks/tools/test_message.py
+++ b/
ihaspeks/tools/test_message.py
@@
-9,7
+9,7
@@
PATH = os.path.join(TOOLS_PATH, "..")
def test(test_type: str, sub_type: str) -> Message:
text_path = os.path.join(TOOLS_PATH, "messages", test_type, sub_type + ".txt")
- f = open(text_path, "
w
")
+ f = open(text_path, "
r
")
message = random.choice(f.readlines())
f.close()
return Bot._parse_message(message)