Skip to content

Commit 89880d7

Browse files
author
Jonathan Wayne Parrott
committed
Merge pull request #76 from GoogleCloudPlatform/appengine-consolidation
Organizing all app engine samples under appengine
2 parents 2d363d5 + 0fa8780 commit 89880d7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+28
-25
lines changed

.coveragerc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
include =
33
appengine/*
44
bigquery/*
5+
blog/*
6+
compute/*
57
datastore/*
6-
localtesting/*
8+
monitoring/*
79
storage/*
8-
blog/*
910
[report]
1011
exclude_lines =
1112
pragma: NO COVER
File renamed without changes.

bigquery/tests/appengine/test_appengine_auth.py renamed to appengine/bigquery/tests/test_appengine_auth.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
from apiclient.http import HttpMock
1919

20-
from bigquery.samples.appengine_auth import main
20+
from appengine.bigquery import main
2121

2222
import mock
2323

@@ -26,10 +26,6 @@
2626
import webapp2
2727

2828

29-
RESOURCE_PATH = os.path.join(
30-
os.path.abspath(os.path.dirname(__file__)), '..', 'resources')
31-
32-
3329
class TestAuthSample(tests.DatastoreTestbedCase, tests.CloudBaseTest):
3430

3531
def setUp(self):
@@ -71,7 +67,7 @@ def test_oauthed_get(self, *args):
7167
request = webapp2.Request.blank('/')
7268

7369
mock_http = HttpMock(
74-
os.path.join(RESOURCE_PATH, 'datasets-list.json'),
70+
os.path.join(self.resource_path, 'datasets-list.json'),
7571
{'status': '200'})
7672
with mock.patch.object(main.decorator, 'http', return_value=mock_http):
7773
original_projectid = main.PROJECTID
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

datastore/ndb/modeling/tests/test_contact_with_group_models.py renamed to appengine/ndb/modeling/tests/test_contact_with_group_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
"""Test classes for code snippet for modeling article."""
1616

17-
from datastore.ndb.modeling import contact_with_group_models as models
17+
from appengine.ndb.modeling import contact_with_group_models as models
1818

1919
from google.appengine.ext import ndb
2020

datastore/ndb/modeling/tests/test_keyproperty_models.py renamed to appengine/ndb/modeling/tests/test_keyproperty_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import unittest
1818

19-
from datastore.ndb.modeling import keyproperty_models as models
19+
from appengine.ndb.modeling import keyproperty_models as models
2020

2121
from tests import DatastoreTestbedCase
2222

datastore/ndb/modeling/tests/test_naive_models.py renamed to appengine/ndb/modeling/tests/test_naive_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
"""Test classes for code snippet for modeling article."""
1616

17-
from datastore.ndb.modeling import naive_models as models
17+
from appengine.ndb.modeling import naive_models as models
1818

1919
from tests import DatastoreTestbedCase
2020

datastore/ndb/modeling/tests/test_parent_child_models.py renamed to appengine/ndb/modeling/tests/test_parent_child_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
"""Test classes for code snippet for modeling article."""
1616

17-
from datastore.ndb.modeling import parent_child_models as models
17+
from appengine.ndb.modeling import parent_child_models as models
1818

1919
from google.appengine.ext import ndb
2020

datastore/ndb/modeling/tests/test_relation_model_models.py renamed to appengine/ndb/modeling/tests/test_relation_model_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
"""Test classes for code snippet for modeling article."""
1616

17-
from datastore.ndb.modeling import relation_model_models as models
17+
from appengine.ndb.modeling import relation_model_models as models
1818

1919
from google.appengine.ext import ndb
2020

datastore/ndb/modeling/tests/test_structured_property_models.py renamed to appengine/ndb/modeling/tests/test_structured_property_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
"""Test classes for code snippet for modeling article."""
1616

17-
from datastore.ndb.modeling import structured_property_models as models
17+
from appengine.ndb.modeling import structured_property_models as models
1818

1919
from tests import DatastoreTestbedCase
2020

File renamed without changes.
File renamed without changes.
File renamed without changes.

datastore/ndb/overview/tests/test_overview.py renamed to appengine/ndb/overview/tests/test_overview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# from the app main.py
16-
from datastore.ndb.overview import main
16+
from appengine.ndb.overview import main
1717

1818
from tests import DatastoreTestbedCase
1919

datastore/ndb/transactions/tests/test_transactions.py renamed to appengine/ndb/transactions/tests/test_transactions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# from the app main.py
16-
from datastore.ndb.transactions import main
16+
from appengine.ndb.transactions import main
1717

1818
from tests import DatastoreTestbedCase
1919

bigquery/README.md

Lines changed: 7 additions & 0 deletions

datastore/README.md

Lines changed: 7 additions & 0 deletions

localtesting/__init__.py

Whitespace-only changes.

tox.ini

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,8 @@ deps =
2626
commands =
2727
nosetests --with-gae \
2828
--logging-level=INFO \
29-
appengine \
30-
datastore/ndb \
31-
localtesting \
32-
bigquery/tests/appengine \
3329
{[testenv]coverargs} \
34-
{posargs}
30+
{posargs:appengine}
3531
setenv =
3632
PYTHONPATH={env:GAE_PYTHONPATH:}
3733

@@ -41,11 +37,7 @@ deps =
4137
gcloud
4238
commands =
4339
nosetests \
44-
--exclude-dir=bigquery/tests/appengine \
45-
--exclude-dir=bigquery/samples/appengine_auth \
4640
--exclude-dir=appengine \
47-
--exclude-dir=datastore/ndb \
48-
--exclude-dir=localtesting \
4941
{[testenv]coverargs} \
5042
{posargs}
5143

0 commit comments

Comments
 (0)