Skip to content

Commit

Permalink
Add testing matrix and update README.md
Browse files Browse the repository at this point in the history
Added the manual testing matrix for the site and
completed the project README.md file.
  • Loading branch information
10xOXR committed Jun 4, 2019
1 parent c6c0010 commit 061d67f
Show file tree
Hide file tree
Showing 6 changed files with 281 additions and 36 deletions.
312 changes: 278 additions & 34 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

def create_app(config_class=Config):
app = Flask(__name__)
app.config.from_object(Config)
app.config.from_object(config_class)
mongo.init_app(app)
app.jinja_env.trim_blocks = True
app.jinja_env.lstrip_blocks = True
Expand Down
2 changes: 1 addition & 1 deletion app/main/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ def landing_page():
# Select 5 random recipes from the database to use in the
# homepage carousel
slideshow = [recipe for recipe in coll_recipes.aggregate(
[{"$sample": {"size": 5}}])]
[{"$sample": {"size": 5}}])]
return render_template("landing.html", slideshow=slideshow)
1 change: 1 addition & 0 deletions app/recipes/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ def delete_recipe(recipe_id):
coll_users.update_one(
{"_id": ObjectId(user)},
{"$pull": {"user_recipes": ObjectId(recipe_id)}})
coll_users.update_many({}, {"$pull": {"user_favs": ObjectId(recipe_id)}})
return redirect(url_for("recipes.show_recipes"))


Expand Down
Binary file modified design/DB Schema.xlsx
Binary file not shown.
Binary file added tests/page_tests.xlsx
Binary file not shown.

0 comments on commit 061d67f

Please sign in to comment.