aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/conftest.py
Commit message (Collapse)AuthorAgeFilesLines
* test: Map all weechat return codes in testsTrygve Aaberge2017-10-081-1/+3
| | | | | So we can assert on all of the return values. Since True == 1 in python, this doesn't change the value of WEECHAT_RC_OK.
* test: Empty eventrouter queue when initializing itTrygve Aaberge2017-09-151-1/+2
| | | | | | | The commit 6718e2f added some more events to the queue when a buffer is created. This made some tests fail as it would process these events instead of the ones added in the tests. Fix it by processing all events in the queue when setting up the eventrouter for the tests.
* test: Make mock_weechat a dependency of realish_eventrouterTrygve Aaberge2017-09-151-1/+1
| | | | | | | | | | Setting up the eventrouter for the tests involves code that requires the config object to be set, so it has to depend on mock_weechat. This didn't cause a problem when all the tests were run since the first test depends on mock_weechat so it would be set up. However, if you tried to run a single test that depended on realish_eventrouter, but not mock_weechat, it would fail.
* Fix the testsBen Kelly2017-07-121-0/+5
| | | | | | | | | | Not everything that needed to be mocked out was, and there was also an issue with every instance of PluginConfig sharing the same mutable settings field and thus stomping on each other if you initialized more than one in the same test. Signed-off-by: Ben Kelly <bk@ancilla.ca> Signed-off-by: Ben Kelly <btk@google.com>
* Handling incoming me_message subtypes.Ben Kelly2017-04-131-0/+2
| | | | Signed-off-by: Ben Kelly <btk@google.com>
* massssssssive merge of the new codebaseRyan Huber2017-04-121-70/+51
|
* unicode fixes, change variable names, better testsRyan Huber2015-11-161-1/+2
|
* Make sure to import rootdir for pytestTollef Fog Heen2015-08-291-0/+4
|
* add some initial tests. messages need a lot of work..Ryan Huber2015-03-181-0/+104