Skip to content

Commit

Permalink
run isort
Browse files Browse the repository at this point in the history
  • Loading branch information
VishnuSanal committed Oct 5, 2024
1 parent 4106ec6 commit c4438cc
Show file tree
Hide file tree
Showing 24 changed files with 31 additions and 27 deletions.
16 changes: 3 additions & 13 deletions integration_tests/base_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,9 @@
from collections import defaultdict
from typing import Optional, TypedDict

from integration_tests.subroutes import sub_router, di_subrouter
from integration_tests.views import SyncView, AsyncView
from robyn import Headers
from robyn import (
Request,
Response,
Robyn,
WebSocket,
jsonify,
serve_file,
serve_html,
WebSocketConnector,
)
from integration_tests.subroutes import di_subrouter, sub_router
from integration_tests.views import AsyncView, SyncView
from robyn import Headers, Request, Response, Robyn, WebSocket, WebSocketConnector, jsonify, serve_file, serve_html
from robyn.authentication import AuthenticationHandler, BearerGetter, Identity
from robyn.templating import JinjaTemplate

Expand Down
3 changes: 2 additions & 1 deletion integration_tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import os
import pathlib
import platform
import signal
import socket
import subprocess
import time
from typing import List
import platform

import pytest

from integration_tests.helpers.network_helpers import get_network_host


Expand Down
2 changes: 1 addition & 1 deletion integration_tests/helpers/network_helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import socket
import platform
import socket


def get_network_host():
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/subroutes/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from robyn import SubRouter, jsonify, WebSocket
from robyn import SubRouter, WebSocket, jsonify

from .di_subrouter import di_subrouter

Expand Down
2 changes: 1 addition & 1 deletion integration_tests/subroutes/di_subrouter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from robyn import SubRouter, Request
from robyn import Request, SubRouter

di_subrouter = SubRouter(__file__, "/di_subrouter")
GLOBAL_DEPENDENCY = "GLOBAL DEPENDENCY OVERRIDE"
Expand Down
2 changes: 2 additions & 0 deletions integration_tests/test_add_route_without_decorator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from collections.abc import Callable

import pytest

from integration_tests.helpers.http_methods_helpers import get, post, put


Expand Down
6 changes: 3 additions & 3 deletions integration_tests/test_app.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from robyn import Robyn, ALLOW_CORS
import pytest

from robyn import ALLOW_CORS, Robyn
from robyn.events import Events
from robyn.robyn import Headers

import pytest


@pytest.mark.benchmark
def test_add_request_header():
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_base_url.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import pytest

import pytest
import requests

from integration_tests.helpers.network_helpers import get_network_host
Expand Down
1 change: 1 addition & 0 deletions integration_tests/test_delete_requests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from integration_tests.helpers.http_methods_helpers import delete


Expand Down
1 change: 1 addition & 0 deletions integration_tests/test_env_populator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import pathlib

import pytest

from robyn.env_populator import load_vars, parser
Expand Down
2 changes: 2 additions & 0 deletions integration_tests/test_exception_handling.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from collections.abc import Callable

import pytest

from integration_tests.helpers.http_methods_helpers import get, post, put


Expand Down
1 change: 1 addition & 0 deletions integration_tests/test_file_download.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from integration_tests.helpers.http_methods_helpers import get


Expand Down
1 change: 1 addition & 0 deletions integration_tests/test_multipart_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from integration_tests.helpers.http_methods_helpers import multipart_post


Expand Down
1 change: 1 addition & 0 deletions integration_tests/test_patch_requests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from integration_tests.helpers.http_methods_helpers import patch


Expand Down
1 change: 1 addition & 0 deletions integration_tests/test_post_requests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from integration_tests.helpers.http_methods_helpers import post


Expand Down
1 change: 1 addition & 0 deletions integration_tests/test_put_requests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from integration_tests.helpers.http_methods_helpers import put


Expand Down
1 change: 1 addition & 0 deletions integration_tests/test_status_code.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from integration_tests.helpers.http_methods_helpers import get


Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_subrouter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from websocket import create_connection
import pytest
from websocket import create_connection

from integration_tests.helpers.http_methods_helpers import generic_http_helper, head

Expand Down
3 changes: 2 additions & 1 deletion integration_tests/test_views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from integration_tests.helpers.http_methods_helpers import get, post
import pytest

from integration_tests.helpers.http_methods_helpers import get, post


@pytest.mark.benchmark
def test_get_sync_view(session):
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_web_sockets.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json

from websocket import create_connection
import pytest
from websocket import create_connection

BASE_URL = "ws://127.0.0.1:8080"

Expand Down
2 changes: 1 addition & 1 deletion integration_tests/views/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .sync_view import SyncView
from .async_view import AsyncView
from .sync_view import SyncView

__all__ = ["SyncView", "AsyncView"]
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import sys

import nox


Expand Down
2 changes: 1 addition & 1 deletion robyn/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from inspect import Signature
from typing import Any, Callable, Dict, List, Optional, TypedDict

from robyn.robyn import Response
from robyn.responses import FileResponse, html
from robyn.robyn import Response


@dataclass
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import sys


sys.stderr.write(
"""
===============================
Expand Down

0 comments on commit c4438cc

Please sign in to comment.