mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
remove pyscriptjs and synclink (#1787)
* remove pyscriptjs and synclink * remove chdir fixture
This commit is contained in:
@@ -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
|
||||
"""
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user