in remote_settings/client.py [0:0]
def __init__(self, args):
"""Initializes the RemoteSettingsClient by authenticating with the server.
The client may be mocked for testing if the --mock-connection flag was passed.
Args:
args (argparse.Namespace): The arguments passed through the CLI
"""
if args.mock_connection:
self._client = MockedClient(args)
return
self._auth_token = RemoteSettingsClient._retrieve_remote_settings_bearer_token()
self._client = Client(
server_url=SERVER_URLS.get(args.server),
bucket=BUCKET,
collection=COLLECTION,
auth=BearerTokenAuth(self._auth_token),
)
self._new_records = None