Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(KC-777) fix test_enterprise_role unit-test #1247

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion unit-tests/test_command_enterprise.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging
import json
from datetime import datetime, timedelta
from typing import Optional
from unittest import TestCase, mock

from data_enterprise import EnterpriseEnvironment, get_enterprise_data, enterprise_allocate_ids
Expand Down Expand Up @@ -339,7 +340,8 @@ def get_audit_event():
}

@staticmethod
def query_enterprise(params): # type: (KeeperParams) -> None
def query_enterprise(params, force=False, tree_key=None):
# type: (KeeperParams, Optional[bool], Optional[bytes]) -> None
params.enterprise = get_enterprise_data(params)
if params.enterprise:
encrypted_tree_key = utils.base64_url_decode(params.enterprise['tree_key'])
Expand Down
Loading