mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
* Fix #2114 - Cleanup the test folder + automation * Merged both test and tests into a single folder
16 lines
444 B
Python
16 lines
444 B
Python
import pytest
|
|
from js import document, localStorage
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def before_tests():
|
|
"""
|
|
Ensure browser storage is always reset to empty. Remove the app
|
|
placeholder. Reset the page title.
|
|
"""
|
|
localStorage.clear()
|
|
# app_placeholder = document.querySelector("pyper-app")
|
|
# if app_placeholder:
|
|
# app_placeholder.remove()
|
|
document.querySelector("title").innerText = "Web API PyTest Suite"
|