Compare commits

..

9 Commits

3 changed files with 55 additions and 1 deletions

1
.gitignore vendored
View File

@ -15,7 +15,6 @@ megahal.*
dr.botzo.log
dr.botzo.markov
*.facts
*.json
*.log
*.pyc
*.sqlite3

36
tests/fixtures/irc_server_fixture.json vendored Normal file
View File

@ -0,0 +1,36 @@
[
{
"model": "ircbot.ircserver",
"pk": 1,
"fields": {
"name": "Localhost",
"hostname": "localhost",
"port": 6697,
"password": null,
"nickname": "test_bot",
"realname": "test_bot",
"additional_addressed_nicks": "",
"use_ssl": true,
"use_ipv6": true,
"post_connect": "",
"delay_before_joins": 5,
"xmlrpc_host": "localhost",
"xmlrpc_port": 13132,
"replace_irc_control_with_markdown": false
}
},
{
"model": "ircbot.ircchannel",
"pk": 1,
"fields": {
"name": "#test",
"server": 1,
"autojoin": true,
"topic_msg": "",
"topic_time": "2022-09-09T18:28:29Z",
"topic_by": "",
"markov_learn_from_channel": true,
"discord_bridge": "bridge"
}
}
]

19
tests/fixtures/markov_fixture.json vendored Normal file
View File

@ -0,0 +1,19 @@
[
{
"model": "markov.markovcontext",
"pk": 1,
"fields": {
"name": "#factory"
}
},
{
"model": "markov.markovtarget",
"pk": 1,
"fields": {
"name": "#factory",
"context": 1,
"channel": 71,
"chatter_chance": 0
}
}
]