lp:~barry/gwibber/testlogger
- Get this branch:
- bzr branch lp:~barry/gwibber/testlogger
Branch merges
- Barry Warsaw: Pending requested
-
Diff: 863 lines (+208/-443)10 files modifiedgwibber/gwibber/errors.py (+3/-0)
gwibber/gwibber/protocols/flickr.py (+4/-4)
gwibber/gwibber/testing/helpers.py (+0/-49)
gwibber/gwibber/testing/mocks.py (+84/-0)
gwibber/gwibber/tests/test_account.py (+3/-2)
gwibber/gwibber/tests/test_flickr.py (+27/-17)
gwibber/gwibber/tests/test_foursquare.py (+19/-11)
gwibber/gwibber/tests/test_twitter.py (+13/-11)
gwibber/gwibber/utils/base.py (+55/-15)
gwibber/microblog/plugins/foursquare/__init__.py (+0/-334)
Branch information
Recent revisions
- 1437. By Barry Warsaw
-
Rework several aspects of the testing infrastructure; although it's a bit ugly
now, this will get cleaned up later. This gives us several improvements:* We no longer pollute the user's gwibber.log with test output.
* We can assert log output even in sub-thread operations.
* We can synchronize the main thread (i.e. the test runner) with the
sub-thread operations, to avoid race conditions in outcome assertions.Details:
* AuthorizationError gets a nice str()
* Temporarily (until the rest of the flickr.py protocol is ported to Dee), add
an alias for 'images' called 'received'.
* Don't try to translate log messages.
* Eliminate the LogPreserver helper; it's much better (although currently
uglier) to mock the protocol module's 'log' attribute.
* Move SettingsIterMock to gwibber.testing. mocks.
* Add a TestLogger which uses a QueueHandler to capture all log messages, even
those that happen in a protocol operation sub-thread.
* Adapt existing tests to use TestLogger.
* Add a synchronization flag which can be mocked to True to enable main
thread/operations thread synchronization through a Barrier. Also, add a
Thread subclass which catches any exceptions in the sub-thread, logs, and
swallows it. - 1435. By Barry Warsaw
-
Merge lp:~robru/gwibber/foursquare, which implements the FourSquare protocol.
This branch also simplified the Dee model to remove unnecessary columns
'transient' and 'timestring'. Also removed is the 'service' argument to
Base._publish() since this is now introspected from the class name
implementing the protocol.Additional changes by barry include providing a utility to convert from epoch
timestamp + utc_offset to iso 8601 utc time strings, plus the usual random
pissing on the hydrant clean ups. - 1432. By Barry Warsaw
-
Full support for RFC 4627 application/json implicit charset encodings. See $3
of the RFC for details. - 1429. By Barry Warsaw
-
Merge lp:~robru/gwibber/broken-protocols, but with merge conflicts fixed and improt race condition fixed.
- 1428. By Barry Warsaw
-
Merge protocol stubs so that the test suite won't fail based on the tester's
libaccounts settings. We ultimately need better test isolation, but this will
do for now.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:gwibber