Skip to content

Commit

Permalink
lint/format errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansurf committed Jul 30, 2024
1 parent 7edc957 commit ad42440
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from src.settings import ServerSettings


def create_app():
def create_app(env):
"""
Application factory function
"""
Expand Down Expand Up @@ -96,7 +96,6 @@ async def run_subprocess():


if __name__ == "__main__":
app = create_app()
env = ServerSettings()
app = create_app(env)
app.run(host="0.0.0.0", port=env.PORT, debug=env.DEBUG)
3 changes: 2 additions & 1 deletion tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Run pytest: pytest
"""

from src import settings
from src.server import create_app


Expand All @@ -14,7 +15,7 @@ def test_routes():
When a page is requested (GET)
THEN check if the response is valid (200)
"""
env = ServerSettings()
env = settings.ServerSettings()
flask_app = create_app(env)
OK = 200

Expand Down

1 comment on commit ad42440

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
src
   __init__.py00100% 
   api.py105694%30, 48, 70–71, 103–104
   art.py9367%24–25, 37
   cli.py23291%50–51
   gpt.py10640%16–21, 32–45
   helper.py1576062%53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77, 79, 91, 102–106, 132, 134, 136, 145–155, 167, 180–181, 199–201, 211, 213–214, 236–237, 275–285, 292–300
   send_email.py24240%5–48
   server.py441077%53, 66–69, 83–87, 99–101
   settings.py220100% 
TOTAL39411172% 

Tests Skipped Failures Errors Time
10 0 💤 0 ❌ 0 🔥 17.774s ⏱️

Please sign in to comment.