Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
477 additions
and
1,158 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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
WTForms>=2.0 | ||
google-cloud-ndb>=1.7.1 |
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
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,6 +1,6 @@ | ||
application: my-app | ||
version: 1 | ||
runtime: python27 | ||
runtime: python37 | ||
api_version: 1 | ||
threadsafe: no | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
"""py.test shared testing configuration. | ||
This defines fixtures (expected to be) shared across different test | ||
modules. | ||
""" | ||
|
||
import pytest | ||
from dsemu import Emulator | ||
from google.cloud import ndb | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def emulator(): | ||
with Emulator() as emulator: | ||
yield emulator | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def session_client(): | ||
client = ndb.Client(project="test") | ||
yield client | ||
|
||
|
||
@pytest.fixture() | ||
def client(emulator: Emulator, session_client: ndb.Client): | ||
emulator.reset() | ||
yield session_client |
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
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,4 +1,4 @@ | ||
coverage | ||
nose | ||
WTForms>=1.0.5 | ||
nosegae | ||
-r ../requirements.txt | ||
dsemu | ||
pytest | ||
pytest-cov |
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,4 +1,5 @@ | ||
from google.appengine.ext import ndb | ||
from google.cloud import ndb | ||
|
||
|
||
class SecondBook(ndb.Model): | ||
author = ndb.KeyProperty(kind='Author') |
Oops, something went wrong.