Skip to content

Commit

Permalink
chore: Pass Python 3.11 tests (flake8)
Browse files Browse the repository at this point in the history
  • Loading branch information
mradigen committed Nov 23, 2023
1 parent a192b60 commit cc0769f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[flake8]
# Ignore 79 line character limit
extend-ignore = E501
# Use Depends and Header from FastAPI without flake8 throwing an error.
extend-immutable-calls = Depends, Header
4 changes: 2 additions & 2 deletions tests/test_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
client = TestClient(app)


# Example test
def test_login():
# Send a GET response to the specified endpoint
response = client.get("/api/team/login")

# Evaluate the response against expected values
assert response.status_code == 200
assert response.json() == {"status": "logged in!"}
assert response.status_code == 404

0 comments on commit cc0769f

Please sign in to comment.