mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
zerver/tests: Remove print_function.
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
from zerver.lib.alert_words import (
|
from zerver.lib.alert_words import (
|
||||||
add_user_alert_words,
|
add_user_alert_words,
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import filecmp
|
import filecmp
|
||||||
import os
|
import os
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import print_function
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.test import TestCase, override_settings
|
from django.test import TestCase, override_settings
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
from zerver.lib.test_classes import ZulipTestCase
|
from zerver.lib.test_classes import ZulipTestCase
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# See http://zulip.readthedocs.io/en/latest/events-system.html for
|
# See http://zulip.readthedocs.io/en/latest/events-system.html for
|
||||||
# high-level documentation on how this system works.
|
# high-level documentation on how this system works.
|
||||||
from __future__ import print_function
|
|
||||||
from typing import Any, Callable, Dict, List, Optional, Union, Text, Tuple
|
from typing import Any, Callable, Dict, List, Optional, Union, Text, Tuple
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.test import TestCase
|
from django.test import TestCase
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import os
|
import os
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
import ujson
|
import ujson
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
from django.test import TestCase
|
from django.test import TestCase
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import ujson
|
import ujson
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
from django.db import connection
|
from django.db import connection
|
||||||
from django.test import override_settings
|
from django.test import override_settings
|
||||||
from sqlalchemy.sql import (
|
from sqlalchemy.sql import (
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import print_function
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import mock
|
import mock
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
from django.http import HttpResponse
|
from django.http import HttpResponse
|
||||||
from django.utils.timezone import now as timezone_now
|
from django.utils.timezone import now as timezone_now
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import itertools
|
import itertools
|
||||||
import requests
|
import requests
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import ujson
|
import ujson
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
from typing import Any, Callable, Dict, Iterable, List, Tuple
|
from typing import Any, Callable, Dict, Iterable, List, Tuple
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
from typing import Any, Union, Mapping, Callable
|
from typing import Any, Union, Mapping, Callable
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import ujson
|
import ujson
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ and Django test systems. It require to use decorator '@gen.coroutine'
|
|||||||
for each test case method( see documentation: http://www.tornadoweb.org/en/stable/testing.html).
|
for each test case method( see documentation: http://www.tornadoweb.org/en/stable/testing.html).
|
||||||
It requires implementation of 'get_app' method to initialize tornado application and launch it.
|
It requires implementation of 'get_app' method to initialize tornado application and launch it.
|
||||||
"""
|
"""
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
from typing import Any, Dict
|
from typing import Any, Dict
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import importlib
|
import importlib
|
||||||
import os
|
import os
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
from typing import (Any, Dict, Iterable, List, Mapping,
|
from typing import (Any, Dict, Iterable, List, Mapping,
|
||||||
Optional, TypeVar, Text, Union)
|
Optional, TypeVar, Text, Union)
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import ujson
|
import ujson
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user