Skip to content

Commit 7e9e500

Browse files
author
Jon Wayne Parrott
committed
Renaming blog folder for datastore samples to be a proper package name, increasing coverage
1 parent 23ae9b2 commit 7e9e500

10 files changed

Lines changed: 28 additions & 10 deletions

File tree

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ include =
1010
[report]
1111
exclude_lines =
1212
pragma: NO COVER
13-
if __name__ == '__main__'
13+
if __name__ == '__main__':

blog/__init__.py

Whitespace-only changes.

blog/introduction-to-data-models-in-cloud-datastore/README.md renamed to blog/introduction_to_data_models_in_cloud_datastore/README.md

File renamed without changes.

blog/introduction_to_data_models_in_cloud_datastore/__init__.py

Whitespace-only changes.

blog/introduction-to-data-models-in-cloud-datastore/blog.py renamed to blog/introduction_to_data_models_in_cloud_datastore/blog.py

File renamed without changes.

blog/introduction-to-data-models-in-cloud-datastore/requirements.txt renamed to blog/introduction_to_data_models_in_cloud_datastore/requirements.txt

File renamed without changes.

blog/introduction-to-data-models-in-cloud-datastore/test_blog.py renamed to blog/introduction_to_data_models_in_cloud_datastore/test_blog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313
#
14-
from blog import main
14+
from .blog import main
1515
from tests import CloudBaseTest
1616

1717

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright 2015, Google, Inc.
2+
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
#
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
#
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
#
14+
from .wiki import main
15+
from tests import CloudBaseTest
16+
17+
18+
class WikiTestCase(CloudBaseTest):
19+
"""Simple test case that ensures the wiki code doesn't throw any errors."""
20+
21+
def test_main(self):
22+
main(self.constants['projectId'])

blog/introduction-to-data-models-in-cloud-datastore/wiki.py renamed to blog/introduction_to_data_models_in_cloud_datastore/wiki.py

File renamed without changes.

tox.ini

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ deps =
1414
coverage
1515
nose-exclude
1616
coverargs =
17-
--with-coverage
18-
--cover-tests
19-
--cover-branches
20-
--cover-inclusive
17+
--with-coverage
18+
--cover-tests
19+
--cover-branches
20+
--cover-inclusive
2121

2222
[testenv:gae]
2323
deps =
@@ -49,11 +49,7 @@ deps =
4949
gcloud
5050
commands =
5151
nosetests \
52-
--exclude-dir=bigquery/tests/appengine \
53-
--exclude-dir=bigquery/samples/appengine_auth \
5452
--exclude-dir=appengine \
55-
--exclude-dir=datastore/ndb \
56-
--exclude-dir=localtesting \
5753
{[testenv]coverargs} \
5854
{posargs}
5955

0 commit comments

Comments
 (0)