Skip to content

Commit 651654e

Browse files
committed
fix: lint and ci
1 parent be333a1 commit 651654e

File tree

2 files changed

+33
-6
lines changed

2 files changed

+33
-6
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,10 @@ jobs:
8989
python-version: ${{ matrix.version }}
9090

9191
- name: Install dependencies and run tests
92-
timeout-minutes: 3
92+
timeout-minutes: 10
9393
run: |
9494
python -m venv python-ci-run
9595
source python-ci-run/bin/activate
9696
pip3 install --upgrade pip
9797
pip3 install tox
98-
pip3 install -r requirements.txt
9998
TOXENV=${{ matrix.toxenv }} ALGOLIA_APPLICATION_ID=${{ secrets.ALGOLIA_APPLICATION_ID }} ALGOLIA_API_KEY=${{ secrets.ALGOLIA_API_KEY }} tox

tests/test_commands.py

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,41 @@ def tearDownClass(cls):
2121

2222
def setUp(self):
2323
# Create some records
24-
u = User(name="James Bond", username="jb", followers_count=0, following_count=0, _lat=0, _lng=0)
24+
u = User(
25+
name="James Bond",
26+
username="jb",
27+
followers_count=0,
28+
following_count=0,
29+
_lat=0,
30+
_lng=0,
31+
)
2532
u.save()
26-
u = User(name="Captain America", username="captain", followers_count=0, following_count=0, _lat=0, _lng=0)
33+
u = User(
34+
name="Captain America",
35+
username="captain",
36+
followers_count=0,
37+
following_count=0,
38+
_lat=0,
39+
_lng=0,
40+
)
2741
u.save()
28-
u = User(name="John Snow", username="john_snow", _lat=120.2, _lng=42.1, followers_count=0, following_count=0)
42+
u = User(
43+
name="John Snow",
44+
username="john_snow",
45+
_lat=120.2,
46+
_lng=42.1,
47+
followers_count=0,
48+
following_count=0,
49+
)
2950
u.save()
30-
u = User(name="Steve Jobs", username="genius", followers_count=331213, following_count=0, _lat=0, _lng=0)
51+
u = User(
52+
name="Steve Jobs",
53+
username="genius",
54+
followers_count=331213,
55+
following_count=0,
56+
_lat=0,
57+
_lng=0,
58+
)
3159
u.save()
3260

3361
self.out = StringIO()

0 commit comments

Comments
 (0)