Allow to send different recorders to betamax

Currently keystoneuath1 only allow to send 'all' recorder to
betamax. Update the conditional to allow passing all the valid
record modes: once, all, new_episodes.

Change-Id: Ieca378fedf2933d7643b19512bf7fe846972caa9
Closes-Bug: 1568840
This commit is contained in:
Yolanda Robla 2016-04-11 10:10:53 +02:00
parent 8b3ed3ed71
commit 1aa6667b81
1 changed files with 2 additions and 2 deletions

View File

@ -59,8 +59,8 @@ def _construct_session_with_betamax(fixture, session_obj=None):
record = 'none'
serializer = None
if fixture.record:
record = 'all'
if fixture.record in ['once', 'all', 'new_episodes']:
record = fixture.record
if fixture.serializer:
serializer = fixture.serializer.name