Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sansyrox committed Feb 18, 2023
1 parent f1f68d3 commit 165d693
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 18 deletions.
2 changes: 1 addition & 1 deletion integration_tests/base_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from robyn.robyn import Response
from robyn.templating import JinjaTemplate

from integration_tests.views import SyncView, AsyncView
from views import SyncView, AsyncView

app = Robyn(__file__)
websocket = WS(app, "/web_socket")
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import platform

import pytest
from integration_tests.helpers.network_helpers import get_network_host
from helpers.network_helpers import get_network_host


def spawn_process(command: List[str]) -> subprocess.Popen:
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_async_views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from integration_tests.helpers.http_methods_helpers import get, post
from helpers.http_methods_helpers import get, post


def test_get_async_view(session):
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_base_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import requests

from integration_tests.helpers.network_helpers import get_network_host
from helpers.network_helpers import get_network_host


def test_default_url_index_request(default_session):
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_basic_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import pytest

from integration_tests.helpers.http_methods_helpers import get
from helpers.http_methods_helpers import get


@pytest.mark.parametrize(
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_delete_requests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from integration_tests.helpers.http_methods_helpers import delete
from helpers.http_methods_helpers import delete


@pytest.mark.parametrize("function_type", ["sync", "async"])
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_file_download.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from integration_tests.helpers.http_methods_helpers import get
from helpers.http_methods_helpers import get


@pytest.mark.parametrize("function_type", ["sync", "async"])
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_get_requests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from requests import Response

from integration_tests.helpers.http_methods_helpers import get
from helpers.http_methods_helpers import get


@pytest.mark.parametrize("function_type", ["sync", "async"])
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_middlewares.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from integration_tests.helpers.http_methods_helpers import get
from helpers.http_methods_helpers import get


@pytest.mark.skip(reason="Fix middleware request headers modification")
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_patch_requests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from integration_tests.helpers.http_methods_helpers import patch
from helpers.http_methods_helpers import patch


@pytest.mark.parametrize("function_type", ["sync", "async"])
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_post_requests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from integration_tests.helpers.http_methods_helpers import post
from helpers.http_methods_helpers import post


@pytest.mark.parametrize("function_type", ["sync", "async"])
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_put_requests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from integration_tests.helpers.http_methods_helpers import put
from helpers.http_methods_helpers import put


@pytest.mark.parametrize("function_type", ["sync", "async"])
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_status_code.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from integration_tests.helpers.http_methods_helpers import get
from helpers.http_methods_helpers import get


def test_404_status_code(session):
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/test_sync_views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from integration_tests.helpers.http_methods_helpers import get, post
from helpers.http_methods_helpers import get, post


def test_get_async_view(session):
Expand Down
4 changes: 0 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ Changelog = "https://github.com/sansyrox/robyn/blob/main/CHANGELOG.md"
[project.optional-dependencies]
"templating" = ["jinja2 == 3.0.1"]

[tool.pytest.ini_options]
pythonpaths = ["."]


[tool.ruff]
line-length = 160
exclude = ["src/*" , ".git" , "docs"]
Expand Down

0 comments on commit 165d693

Please sign in to comment.