Skip to content
This repository has been archived by the owner on Feb 15, 2018. It is now read-only.

Commit

Permalink
Quick fix unit tests for the new helium-python adapter based setup
Browse files Browse the repository at this point in the history
  • Loading branch information
madninja committed Nov 9, 2016
1 parent 0819878 commit 8bb9b21
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/conftest.py
Expand Up @@ -40,8 +40,9 @@ def helium_recorder(request):
cassette_name += request.function.__name__

session = helium_commander.Client(base_url=API_URL)
session.token_auth(API_TOKEN)
recorder = Betamax(session)
session.api_token = API_TOKEN
recorder = Betamax(session.adapter)
recorder.client = session

recorder.use_cassette(cassette_name)
recorder.start()
Expand All @@ -52,7 +53,7 @@ def helium_recorder(request):
@pytest.fixture
def client(helium_recorder):
"""Return the helium.Client object used by the current recorder."""
return helium_recorder.session
return helium_recorder.client


@pytest.fixture
Expand Down

0 comments on commit 8bb9b21

Please sign in to comment.