fix: improve maintenance and synchronize live conversations
This commit is contained in:
1 parent
bb541bd212
commit
ef86a5d3af
297 files changed
+2983
-1274
No files matched your search
@@ -16,7 +16,7 @@ limitations under the License.
|
||||
|
||||
import pytest
|
||||
from uuid import uuid4
|
||||
from unittest.mock import Mock, MagicMock, patch, PropertyMock
|
||||
from unittest.mock import Mock, MagicMock, patch
|
||||
from datetime import datetime
|
||||
|
||||
from app.repositories.widget_app import WidgetAppRepository
|
||||
@@ -533,7 +533,6 @@ class TestAPIKeyRegeneration:
|
||||
self, mock_hash, mock_generate, widget_app_repo, mock_db, mock_widget_app, org_id
|
||||
):
|
||||
"""Test API key regeneration."""
|
||||
old_hash = mock_widget_app.api_key_hash
|
||||
mock_generate.return_value = "wak_new_key_12345678901234567890123456789012345"
|
||||
mock_hash.return_value = "$2b$12$newhash"
|
||||
|
||||
@@ -627,7 +626,7 @@ class TestOrganizationIsolation:
|
||||
|
||||
def test_cannot_access_other_org_app(self, widget_app_repo, mock_db):
|
||||
"""Test that one org cannot access another org's app."""
|
||||
org1 = uuid4()
|
||||
uuid4()
|
||||
org2 = uuid4()
|
||||
|
||||
mock_query = MagicMock()
|
||||
|
||||
Reference in new issue
Block a user