-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
790ac51
commit 7d5ace1
Showing
8 changed files
with
82 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package: | ||
name: apsw | ||
version: 3.47.2.0 | ||
top-level: | ||
- apsw | ||
source: | ||
url: https://files.pythonhosted.org/packages/e8/0b/de1376f0ffaec714eff65a203d1b86a3ff6aac3ef61ca70be63f0b516da2/apsw-3.47.2.0.tar.gz | ||
sha256: 95d03c1236bb247d7b2241eda229bc9025fb6edb2b49257fc52a0ee64f5b36bc | ||
test: | ||
imports: | ||
- apsw | ||
about: | ||
home: https://github.com/rogerbinns/apsw | ||
PyPI: https://pypi.org/project/apsw | ||
summary: Another Python SQLite Wrapper | ||
license: any-OSI | ||
extra: | ||
recipe-maintainers: | ||
- airen1986 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from pytest_pyodide import run_in_pyodide | ||
|
||
|
||
@run_in_pyodide(packages=["apsw"]) | ||
async def apsw_test_helper(selenium): | ||
import apsw | ||
|
||
assert apsw.using_amalgamation | ||
|
||
connection = apsw.Connection(":memory:") | ||
connection.execute("create table point(x,y,z)") | ||
connection.execute("insert into point values(1, 2, 3)") | ||
row = connection.execute("select * from point").fetchone() | ||
assert row == (1, 2, 3) | ||
|
||
|
||
def test_apsw(selenium): | ||
apsw_test_helper(selenium) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package: | ||
name: css-inline | ||
version: 0.14.6 | ||
top-level: | ||
- css_inline | ||
source: | ||
url: https://github.com/Stranger6667/css-inline/releases/download/python-v0.14.6/css_inline-0.14.6-cp37-abi3-pyodide_2024_0_wasm32.whl | ||
sha256: d8ba5ceb0362092d051683a3f56dd04d34bfd34c00ab646d3ca04972bb852d03 | ||
about: | ||
home: https://github.com/Stranger6667/css-inline | ||
summary: High-performance library for inlining CSS into HTML 'style' attributes | ||
license: MIT | ||
extra: | ||
recipe-maintainers: | ||
- Stranger6667 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from pytest_pyodide import run_in_pyodide | ||
|
||
|
||
@run_in_pyodide(packages=["css_inline"]) | ||
def test_inline_html(selenium): | ||
import css_inline | ||
|
||
html = """<html> | ||
<head> | ||
<style>h1 { color:blue; }</style> | ||
</head> | ||
<body> | ||
<h1>Big Text</h1> | ||
</body> | ||
</html>""" | ||
|
||
assert '<h1 style="color: blue;">Big Text</h1>' in css_inline.inline(html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters