Skip to content

Commit 0107b18

Browse files
committed
Remove chromedriver
1 parent c92bed3 commit 0107b18

File tree

2 files changed

+30
-31
lines changed

2 files changed

+30
-31
lines changed

.github/workflows/test-src.yml

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,34 @@
11
name: Test
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
10-
schedule:
11-
- cron: "0 0 * * *"
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
schedule:
11+
- cron: "0 0 * * *"
1212

1313
jobs:
14-
source:
15-
runs-on: ubuntu-latest
16-
strategy:
17-
matrix:
18-
python-version: ["3.8", "3.9", "3.10"]
19-
steps:
20-
- uses: actions/checkout@v3
21-
- uses: nanasess/setup-chromedriver@master
22-
- uses: actions/setup-node@v3
23-
with:
24-
node-version: "14"
25-
- name: Use Python ${{ matrix.python-version }}
26-
uses: actions/setup-python@v4
27-
with:
28-
python-version: ${{ matrix.python-version }}
29-
- name: Install Python Dependencies
30-
run: pip install -r requirements/test-run.txt
31-
- name: Run Tests
32-
run: |
33-
npm install -g npm@latest
34-
npm --version
35-
nox -s test
14+
source:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
python-version: ["3.8", "3.9", "3.10"]
19+
steps:
20+
- uses: actions/checkout@v3
21+
- uses: actions/setup-node@v3
22+
with:
23+
node-version: "14.x"
24+
- name: Use Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
- name: Install Python Dependencies
29+
run: pip install -r requirements/test-run.txt
30+
- name: Run Tests
31+
run: |
32+
npm install -g npm@latest
33+
npm --version
34+
nox -s test

src/reactpy_django/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def django_query_postprocessor(
264264
# Force the query to execute
265265
getattr(data, field.name, None)
266266

267-
if many_to_one and type(field) == ManyToOneRel:
267+
if many_to_one and type(field) == ManyToOneRel: # noqa: #E721
268268
prefetch_fields.append(field.related_name or f"{field.name}_set")
269269

270270
elif many_to_many and isinstance(field, ManyToManyField):

0 commit comments

Comments
 (0)