Skip to content

Commit 319b3e6

Browse files
committed
updated ci
1 parent 240605a commit 319b3e6

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

.github/workflows/ci.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ jobs:
1010
steps:
1111
- name: Checkout repository
1212
uses: actions/checkout@v3
13-
- name: Setup Python 3.11
14-
uses: actions/setup-python@v4
15-
with:
16-
python-version: "3.11"
1713
- name: Install Rust
1814
uses: actions-rs/toolchain@v1
1915
with:
@@ -24,6 +20,10 @@ jobs:
2420
uses: actions-rs/cargo@v1
2521
with:
2622
command: install
23+
- name: Setup Python 3.11
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: "3.11"
2727
- name: Install Pre-Commit
2828
run: python -m pip install pre-commit && pre-commit install
2929
- name: Load cached Pre-Commit Dependencies
@@ -43,6 +43,16 @@ jobs:
4343
steps:
4444
- name: Checkout repository
4545
uses: actions/checkout@v3
46+
- name: Install Rust
47+
uses: actions-rs/toolchain@v1
48+
with:
49+
profile: minimal
50+
toolchain: stable
51+
override: true
52+
- name: Install Rust Dependencies
53+
uses: actions-rs/cargo@v1
54+
with:
55+
command: install
4656
- name: Setup Python ${{ matrix.python-version }}
4757
uses: actions/setup-python@v4
4858
with:
@@ -61,16 +71,6 @@ jobs:
6171
key: v1-venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
6272
- name: Install Python Dependencies
6373
run: poetry install --no-interaction --no-root
64-
- name: Install Rust
65-
uses: actions-rs/toolchain@v1
66-
with:
67-
profile: minimal
68-
toolchain: stable
69-
override: true
70-
- name: Install Rust Dependencies
71-
uses: actions-rs/cargo@v1
72-
with:
73-
command: install
7474
- name: Set pythonpath
7575
run: echo "PYTHONPATH=$PWD" >> $GITHUB_ENV
7676
- name: Install library

tests/test_parse_qs.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ def test_parse_urlencoded() -> None:
1515
("healthy", "true"),
1616
("polluting", "false"),
1717
("json", "null"),
18-
("arabic_text", "اختبار اللغة العربية")
1918
]
2019
).encode()
2120
)
@@ -27,5 +26,4 @@ def test_parse_urlencoded() -> None:
2726
"healthy": True,
2827
"polluting": False,
2928
"json": None,
30-
"arabic_text": "اختبار اللغة العربية",
3129
}

tests/test_parse_qsl.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,7 @@ def test_parse_qsl_semicolon_separator(qs: str, expected: list[tuple[str, str]])
7171
def test_query_parsing_of_escaped_values(values: tuple[tuple[str, str], tuple[str, str]]) -> None:
7272
url_encoded = urlencode(values)
7373
assert fast_parse_qsl(url_encoded.encode(), "&") == list(values)
74+
75+
76+
def test_parses_non_ascii_text() -> None:
77+
assert fast_parse_qsl("arabic_text=اختبار اللغة العربية".encode(), "&") == [("arabic_text", "اختبار اللغة العربية")]

0 commit comments

Comments
 (0)