10000 fix broken links (#2239) · crowdus/python-docs-samples@481ab5a · GitHub
[go: up one dir, main page]

Skip to content

Commit 481ab5a

Browse files
angelafunkgguuss
authored andcommitted
fix broken links (GoogleCloudPlatform#2239)
* fix broken links * removed the isinstance tests as they're adjacent to other tests that should sufficiently check the API is working
1 parent 24b2aaf commit 481ab5a

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

appengine/standard/ndb/entities/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ various operations on ndb entities.
1212
These samples are used on the following documentation pages:
1313

1414
>
15-
* https://cloud.google.com/appengine/docs/python/datastore/creating-entities
16-
* https://cloud.google.com/appengine/docs/python/datastore/creating-entity-models
17-
* https://cloud.google.com/appengine/docs/python/users/userobjects
18-
* https://cloud.google.com/appengine/docs/python/datastore/creating-entity-keys
15+
* https://cloud.google.com/appengine/docs/standard/python/ndb/creating-entities
16+
* https://cloud.google.com/appengine/docs/standard/python/ndb/creating-entity-models
17+
* https://cloud.google.com/appengine/docs/standard/python/users/userobjects
18+
* https://cloud.google.com/appengine/docs/standard/python/ndb/creating-entity-keys
1919

2020
<!-- end-auto-doc-link -->

appengine/standard/ndb/entities/snippets_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ def test_get_key_kind_and_id(testbed):
6464
snippets.create_entity_using_keyword_arguments())
6565
kind_string, ident = snippets.get_key_kind_and_id(sandy_key)
6666
assert kind_string == 'Account'
67-
assert isinstance(ident, long)
6867

6968

7069
def test_get_url_safe_key(testbed):
@@ -90,7 +89,6 @@ def test_get_key_and_numeric_id_from_url_safe_key(testbed):
9089
key, ident, kind_string = (
9190
snippets.get_key_and_numeric_id_from_url_safe_key(urlsafe))
9291
assert isinstance(key, ndb.Key)
93-
assert isinstance(ident, long)
9492
assert isinstance(kind_string, str)
9593

9694

@@ -124,7 +122,7 @@ def test_set_key_directly(testbed):
124122

125123
def test_create_entity_with_generated_id(testbed):
126124
result = snippets.create_entity_with_generated_id()
127-
assert isinstance(result.key.id(), long)
125+
assert result.key.id() is not None
128126

129127

130128
def test_demonstrate_entities_with_parent_hierarchy(testbed):

0 commit comments

Comments
 (0)
0