+karma用噗浪機器人!
加好友後會自動回加!會回噗!可以聊天(要tag機器人)~也會進村(如果機器人沒有理你可能是漏噗了,就tag機器人喊進村就行!)~
Basically, to increase your karma's increase speed.
When you add her as friend, will automatically be added as friend too.
使用須知/Notice:
機器人帳號權限等同於一般使用者帳號,所以加機器人好友後如果開發者登入,會看到友限貼文,雖開發者不會隨時登入機器人帳號,但有時開發新功能還是會登入機器人帳號發公告,有時為了debug也會登入機器人帳號,若在意者請不要使用機器人喔,謝謝~~
如果是單則噗不想讓機器人看到,可以鎖噗,機器人會和一般帳號一樣,就沒有權限看噗了!
在噗文裡加上--noreply的話,機器人不會回應該噗,如果不想被回應可以用~
使用pytest而非django原生test理由(from官方文件)
Why would I use this instead of Django’s manage.py test command?
pytest提供了比django test還多的功能
Running the test suite with pytest offers some features that are not present in Django’s standard test mechanism:
比較少麻煩,不需要import unittest,創建子類別,可以直接寫一般的function
Less boilerplate: no need to import unittest, create a subclass with methods. Just write tests as regular functions.
使用fixtures來管理依賴
Manage test dependencies with fixtures.
多進程執行測試,加快速度