-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proof-of-concept for mock ddb fixtures
- Loading branch information
Showing
2 changed files
with
64 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,29 @@ | ||
from backend.models import Recipe, Step | ||
from backend.recipe_routes import RecipeApi, RecipeCollectionApi | ||
from datetime import datetime, timezone | ||
from dateutil import parser as dateutil_parser | ||
from flask_restful import reqparse | ||
import json | ||
# from backend.models import Recipe, Step | ||
# from backend.recipe_routes import RecipeApi, RecipeCollectionApi | ||
# from datetime import datetime, timezone | ||
# from dateutil import parser as dateutil_parser | ||
# from flask_restful import reqparse | ||
# import json | ||
|
||
|
||
class TestRecipeCollectionApi: | ||
def test_get(self): | ||
def test_get(self, mock_recipe): | ||
# TODO: Write unit tests for recipe routes | ||
pass | ||
|
||
def test_post(self): | ||
def test_post(self, mock_recipe): | ||
# example = mock_recipe(name="my-mock-recipe1", difficulty="Intermediate") | ||
# example.save() | ||
# assert mock_recipe.count() == 1 | ||
pass | ||
|
||
|
||
class TestRecipeApi: | ||
def test_get(self): | ||
pass | ||
|
||
def test_put(self): | ||
pass | ||
|
||
def test_delete(self): | ||
pass | ||
# class TestRecipeApi: | ||
# def test_get(self): | ||
# pass | ||
# | ||
# def test_put(self): | ||
# pass | ||
# | ||
# def test_delete(self): | ||
# pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters