Skip to content

Commit

Permalink
fix(tests): add arborist client attribute to magic mock for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Avantol13 committed Oct 14, 2019
1 parent b47cd57 commit 3de5c56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/dbgap_sync/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ def mocked_update(parent_path, resource, **kwargs):

syncer_obj.arborist_client.get_policy.side_effect = lambda _: None

syncer_obj.arborist_client._user_url = "/user"

for element in provider:
udm.create_provider(db_session, element["name"], backend=element["backend"])

Expand Down

0 comments on commit 3de5c56

Please sign in to comment.