Skip to content

Commit

Permalink
blueprints are bad.
Browse files Browse the repository at this point in the history
  • Loading branch information
yassiommi committed May 8, 2020
1 parent fbf722c commit 2da3b75
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions calculator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from flask import Blueprint


calculator = Blueprint('calculator', __name__, url_prefix='/calculate/')


from calculator import views
4 changes: 2 additions & 2 deletions foods/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from flask import Blueprint


foods = Blueprint('users', __name__, url_prefix='/food/')
foods = Blueprint('foods', __name__, url_prefix='/food/')


from foods import views
from foods import views
2 changes: 2 additions & 0 deletions tests/diet_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import requests
import json

ip = getenv('TEST_URL')

class TestDiet(unittest.TestCase):

def test_sevade(self):
Expand Down

0 comments on commit 2da3b75

Please sign in to comment.