Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bradchiappetta committed Mar 30, 2021
1 parent b7dc8dd commit e1fddb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/greynoise/cli/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ def wrapper(*args, **kwargs):
offering = config["offering"]

api_client = GreyNoise(
api_key=api_key, offering=offering, timeout=config["timeout"], integration_name="cli"
api_key=api_key,
offering=offering,
timeout=config["timeout"],
integration_name="cli",
)
return function(api_client, *args, **kwargs)

Expand Down
1 change: 1 addition & 0 deletions tests/cli/test_subcommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def api_client():
"api_key": "<api_key>",
"api_server": "<api_server>",
"timeout": DEFAULT_CONFIG["timeout"],
"offering": "enterprise"
}
with api_client_cls_patcher as api_client_cls:
api_client = api_client_cls()
Expand Down

0 comments on commit e1fddb0

Please sign in to comment.