Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Robyn and SubRouter classes #1072

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: added unit test of app. directory path
  • Loading branch information
dave42w committed Dec 6, 2024
commit 36e00523ee30e020bc2226cf3cedcdeb32e6e21f
2 changes: 2 additions & 0 deletions unit_tests/test_robyn_app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from robyn.router import Router
from robyn import Robyn, SubRouter

Expand All @@ -7,6 +8,7 @@ def test_app_creation():
router = app.router
assert isinstance(router, Router)
assert len(router.routes) == 0
assert app.directory_path == os.path.dirname(os.path.abspath(__file__))


def test_subrouter_creation():
Expand Down