Skip to content

Commit

Permalink
TESTING now properly treated as boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
kyokukou committed Oct 20, 2023
1 parent ef93be1 commit 0f1ae33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
TESTING=ON poetry run pytest
poetry run pytest
2 changes: 1 addition & 1 deletion search/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def create_ui_web_app() -> Flask:
for filter_name, template_filter in filters.filters:
app.template_filter(filter_name)(template_filter)

if app.config["TESTING"] =="ON":
if app.config["TESTING"]:
index_startup_check(app)
return app

Expand Down

0 comments on commit 0f1ae33

Please sign in to comment.