Skip to content

Commit

Permalink
fix:test in libs
Browse files Browse the repository at this point in the history
  • Loading branch information
HuseinA committed May 12, 2020
1 parent f3758c3 commit ce94dc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_libs/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ def fake_session(**kwargs):
def test_resource(monkeypatch):
monkeypatch.setattr(config, "load_config_file", fake_config)
monkeypatch.setattr(boto3, "Session", fake_session)
monkeypatch.setattr(auth, "get_endpoint", lambda: None)
monkeypatch.setattr(auth, "get_endpoint", lambda url: None)
assert auth.resource() == "s3_resource"
2 changes: 1 addition & 1 deletion tests/test_libs/test_gmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def fake_auth():

def test_policy_id(monkeypatch):
monkeypatch.setattr(requests, "get", fake_request)
monkeypatch.setattr(auth_lib, "get_endpoint", lambda bucket_name: None)
monkeypatch.setattr(auth_lib, "get_endpoint", lambda url, bucket_name: None)
assert "dd7e84cfe467c0fc11b5b075ac9acd73" == gmt.policy_id(
"awesome-bucket", fake_auth()
)
Expand Down

0 comments on commit ce94dc1

Please sign in to comment.