remove pyscriptjs and synclink (#1787)

* remove pyscriptjs and synclink

* remove chdir fixture
This commit is contained in:
Madhur Tandon
2023-10-04 21:46:34 +05:30
committed by GitHub
parent a00a6750b4
commit b4503ef729
77 changed files with 4 additions and 17149 deletions

View File

@@ -54,7 +54,7 @@ def pytest_configure(config):
--no-fake-server, but because of how pytest works, they are available only
if this is the "root conftest" for the test session.
This means that if you are in the pyscriptjs directory:
This means that if you are in the pyscript.core directory:
$ py.test # does NOT work
$ py.test tests/integration/ # works
@@ -70,10 +70,9 @@ def pytest_configure(config):
"""
if not hasattr(config.option, "dev"):
msg = """
Running a bare "pytest" command from the pyscriptjs directory
Running a bare "pytest" command from the pyscript.core directory
is not supported. Please use one of the following commands:
- pytest tests/integration
- pytest tests/py-unit
- pytest tests/*
- cd tests/integration; pytest
"""

View File

@@ -15,7 +15,6 @@ from .support import ROOT, PyScriptTest, wait_for_render, with_execution_thread
reason="SKIPPING EXAMPLES: these should be moved elsewhere and updated"
)
@with_execution_thread(None)
@pytest.mark.usefixtures("chdir")
class TestExamples(PyScriptTest):
"""
Each example requires the same three tests:
@@ -26,11 +25,6 @@ class TestExamples(PyScriptTest):
- Testing that the page contains appropriate content after rendering
"""
@pytest.fixture()
def chdir(self):
# make sure that the http server serves from the right directory
ROOT.join("pyscriptjs").chdir()
def test_hello_world(self):
self.goto("examples/hello_world.html")
self.wait_for_pyscript()