Skip to content

Commit

Permalink
rename package xivo to wazo
Browse files Browse the repository at this point in the history
  • Loading branch information
pc-m committed Jul 18, 2024
1 parent bc7bd0f commit 2be6fc9
Show file tree
Hide file tree
Showing 90 changed files with 2 additions and 13 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from unittest.mock import Mock

from hamcrest import assert_that, equal_to

from xivo.cli.completion.completer import CommandLineCompleter
from xivo.cli.registry import CommandRegistry

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from unittest.mock import Mock

from hamcrest import assert_that, equal_to, none

from xivo.cli.exception import NoMatchingCommandError
from xivo.cli.parser import RawCommandLineParser
from xivo.cli.registry import CommandRegistry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from unittest.mock import Mock

from hamcrest import assert_that, contains_inanyorder, equal_to

from xivo.cli.exception import CommandAlreadyRegisteredError, NoMatchingCommandError
from xivo.cli.registry import CommandRegistry

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from unittest.mock import sentinel as s

import pytest

from xivo.auth_verifier import Unauthorized, no_auth, required_acl, required_tenant
from xivo.http_exceptions import InvalidTokenAPIException

Expand Down
1 change: 0 additions & 1 deletion xivo/http_exceptions.py → wazo/http_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from __future__ import annotations

import requests

from xivo import rest_api_helpers


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 2 additions & 3 deletions xivo/tenant_flask_helpers.py → wazo/tenant_flask_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from flask import current_app, g
from wazo_auth_client import Client as AuthClient
from werkzeug.local import LocalProxy

from xivo.tenant_helpers import Token, User

from . import tenant_helpers
Expand Down Expand Up @@ -43,7 +42,7 @@ def get_token() -> Token:
return token


token: Token = LocalProxy(get_token) # type: ignore[assignment]
token: Token = LocalProxy(get_token)


def get_user() -> User:
Expand All @@ -53,7 +52,7 @@ def get_user() -> User:
return user


user: User = LocalProxy(get_user) # type: ignore[assignment]
user: User = LocalProxy(get_user)

Self = TypeVar('Self', bound='Tenant')

Expand Down
1 change: 0 additions & 1 deletion xivo/tenant_helpers.py → wazo/tenant_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from typing import TYPE_CHECKING, Any, TypeVar

import requests

from xivo import rest_api_helpers
from xivo.http_exceptions import AuthServerUnreachable, InvalidTokenAPIException

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import unittest

from hamcrest import assert_that, equal_to

from xivo import caller_id
from xivo.caller_id import extract_displayname, extract_number, is_complete_caller_id

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from unittest.mock import ANY, Mock, patch

from hamcrest import assert_that, equal_to

from xivo.http_helpers import (
BodyFormatter,
LazyHeaderFormatter,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
)
from requests import HTTPError, RequestException
from wazo_test_helpers.hamcrest.raises import raises

from xivo.auth_verifier import AuthServerUnreachable, InvalidTokenAPIException

from ..tenant_helpers import InvalidTenant, Tenant, Token, UnauthorizedTenant
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
is_,
is_not,
)

from xivo.xivo_logging import (
DEFAULT_LOG_FORMAT,
DEFAULT_LOG_LEVEL,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2be6fc9

Please sign in to comment.