Unit Tests
pbui opened this issue · comments
Modifying bobbit can be a bit tricky because of the lack of tests. Fortunately, bobbit-0.2.x
was redesigned to make it easier to test locally (ie. without an actual connection to a network). That said, there are only a few unit tests for some modules, and not unit tests for the package itself.
I would like to add unit tests for as many parts of bobbit as possible:
-
bobbit.bot
-
bobbit.config
-
bobbit.history
-
bobbit.message
-
bobbit.utils
-
bobbit.protocol.irc
-
bobbit.protocol.local
-
bobbit.protocol.slack
-
bobbit.modules.events
-
bobbit.modules.feeds
-
bobbit.modules.tweets
I would like to use a mixture of doctests and unittests.
I can help with this...any reason you don't want to use pytest
? It is compatible with unittest
, and has many convenience features, such as temporary directories per test