Skip to content

Commit

Permalink
fix: lint and ci
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Nov 26, 2024
1 parent be333a1 commit 651654e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,10 @@ jobs:
python-version: ${{ matrix.version }}

- name: Install dependencies and run tests
timeout-minutes: 3
timeout-minutes: 10
run: |
python -m venv python-ci-run
source python-ci-run/bin/activate
pip3 install --upgrade pip
pip3 install tox
pip3 install -r requirements.txt
TOXENV=${{ matrix.toxenv }} ALGOLIA_APPLICATION_ID=${{ secrets.ALGOLIA_APPLICATION_ID }} ALGOLIA_API_KEY=${{ secrets.ALGOLIA_API_KEY }} tox
36 changes: 32 additions & 4 deletions tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,41 @@ def tearDownClass(cls):

def setUp(self):
# Create some records
u = User(name="James Bond", username="jb", followers_count=0, following_count=0, _lat=0, _lng=0)
u = User(
name="James Bond",
username="jb",
followers_count=0,
following_count=0,
_lat=0,
_lng=0,
)
u.save()
u = User(name="Captain America", username="captain", followers_count=0, following_count=0, _lat=0, _lng=0)
u = User(
name="Captain America",
username="captain",
followers_count=0,
following_count=0,
_lat=0,
_lng=0,
)
u.save()
u = User(name="John Snow", username="john_snow", _lat=120.2, _lng=42.1, followers_count=0, following_count=0)
u = User(
name="John Snow",
username="john_snow",
_lat=120.2,
_lng=42.1,
followers_count=0,
following_count=0,
)
u.save()
u = User(name="Steve Jobs", username="genius", followers_count=331213, following_count=0, _lat=0, _lng=0)
u = User(
name="Steve Jobs",
username="genius",
followers_count=331213,
following_count=0,
_lat=0,
_lng=0,
)
u.save()

self.out = StringIO()
Expand Down

0 comments on commit 651654e

Please sign in to comment.