stream: Don't compare entire track object

On Ubuntu 16.04 with GStreamer 1.2, we don't get a bitrate.

On Ubuntu 18.04 or macOS with GStreamer 1.12, we get a bitrate.
This commit is contained in:
Stein Magnus Jodal 2018-03-29 17:11:35 +02:00
parent 2e32b5c8bf
commit c59eccb06c

View File

@ -60,4 +60,8 @@ def test_lookup_converts_uri_metadata_to_track(audio, config, track_uri):
backend = actor.StreamBackend(audio=audio, config=config)
result = backend.library.lookup(track_uri)
assert result == [Track(length=4406, uri=track_uri)]
assert len(result) == 1
track = result[0]
assert track.uri == track_uri
assert track.length == 4406