Skip to content

Commit

Permalink
Fix test path and import testutils from the original streamlit module
Browse files Browse the repository at this point in the history
  • Loading branch information
whitphx committed May 25, 2024
1 parent 8806ea6 commit c6dc673
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 93 deletions.
5 changes: 5 additions & 0 deletions packages/kernel/py/stlite-server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ ignore_errors = true
[[tool.mypy.overrides]]
module = ["pyodide", "pyodide.*", "matplotlib", "st_aggrid"]
ignore_missing_imports = true

[tool.pytest.ini_options]
testpaths = [
"stlite_server_tests", # To import the `tests` module in the `streamlit` directory, use a different name for a test directory.
]
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
from streamlit.hello import Hello
from streamlit.runtime.runtime import Runtime
from streamlit.runtime.scriptrunner.script_run_context import add_script_run_ctx
from tests.testutil import create_mock_script_run_ctx

from stlite_server.server import Server
from tests.testutil import create_mock_script_run_ctx


@pytest.fixture
Expand Down
92 changes: 0 additions & 92 deletions packages/kernel/py/stlite-server/tests/testutil.py

This file was deleted.

0 comments on commit c6dc673

Please sign in to comment.