lp:~barry/gwibber/testlogger

Created by Barry Warsaw and last modified
Get this branch:
bzr branch lp:~barry/gwibber/testlogger
Only Barry Warsaw can upload to this branch. If you are Barry Warsaw please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Barry Warsaw
Project:
Gwibber
Status:
Merged

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.

1436. By Barry Warsaw

foursquare plugin is ported.

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.

1434. By Barry Warsaw

Nuke protocol 'info'; we don't need it any more.

1433. By Barry Warsaw

Merge lp:~robru/gwibber/dee with changes by barry.

1432. By Barry Warsaw

Full support for RFC 4627 application/json implicit charset encodings. See $3
of the RFC for details.

1431. By Barry Warsaw

Remove obsolete module. One more nail in the coffin for microblog/

1430. By Barry Warsaw

Fix old imports.

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
This branch contains Public information 
Everyone can see this information.

Subscribers