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:
parent
8b3ed3ed71
commit
1aa6667b81
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue