Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshg999 committed May 6, 2024
1 parent 2054026 commit 3fa11c9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions apps/beeswax/src/beeswax/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
from django.urls import reverse
from django.db import transaction

from unittest.mock import patch
from io import BytesIO as string_io

from desktop.lib.exceptions_renderable import PopupException
from desktop.conf import AUTH_USERNAME as DEFAULT_AUTH_USERNAME, AUTH_PASSWORD as DEFAULT_AUTH_PASSWORD, \
AUTH_PASSWORD_SCRIPT as DEFAULT_AUTH_PASSWORD_SCRIPT, LDAP_USERNAME, LDAP_PASSWORD, USE_NEW_EDITOR
Expand Down
3 changes: 2 additions & 1 deletion apps/hive/src/hive/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

import aws
import pytest
import sys

from unittest.mock import patch, Mock

from desktop.lib.django_test_util import make_logged_in_client

Expand Down
2 changes: 1 addition & 1 deletion desktop/core/src/desktop/lib/django_util_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,4 @@ def test_reverse_with_get():
assert "/" == reverse_with_get("desktop_views.index", get=dict())

def test_unicode_ok():
assert "/?a=x%C3%A9" == reverse_with_get("desktop_views.index", get=dict(a="x" + unichr(233)))
assert "/?a=x%C3%A9" == reverse_with_get("desktop_views.index", get=dict(a="x" + chr(233)))
1 change: 1 addition & 0 deletions desktop/libs/hadoop/src/hadoop/test_hdfs_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import os
import tempfile

from hadoop import conf
from hadoop import hdfs_site


Expand Down

0 comments on commit 3fa11c9

Please sign in to comment.