Closed crawln45 closed 8 years ago
Check out the docs on record modes. By default the cassette can only be used once, but if you would like it to be more than once there's a mode for that :)
did you even look at the error that was pasted? this is still very relevant
Just to add some context to @liiight's comment:
The request recorded in the cassette is the same as the one in our test, but it fails to match the cassette on Python 2, because of a type error. The mismatch is caused by a comparison between a unicode string and a str
object ie. u'sóme unicøde string' == 'sóme unicøde string'
.
It's been a long time since I examined the problem, but from what I recall, the problem is that you're not saving unicode objects properly in the cassette.
EDIT: The cassette matches in Python 3, so it's definitely not because of the "record mode".
Seems when url is unicode encoded. VCR throws a warning about it and fails the test with -rw flag. Also seems that cassettes can't be used more than once.