File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
appengine/standard/ndb/entities Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ various operations on ndb entities.
12
12
These samples are used on the following documentation pages:
13
13
14
14
>
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
19
19
20
20
<!-- end-auto-doc-link -->
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ def test_get_key_kind_and_id(testbed):
64
64
snippets .create_entity_using_keyword_arguments ())
65
65
kind_string , ident = snippets .get_key_kind_and_id (sandy_key )
66
66
assert kind_string == 'Account'
67
- assert isinstance (ident , long )
68
67
69
68
70
69
def test_get_url_safe_key (testbed ):
@@ -90,7 +89,6 @@ def test_get_key_and_numeric_id_from_url_safe_key(testbed):
90
89
key , ident , kind_string = (
91
90
snippets .get_key_and_numeric_id_from_url_safe_key (urlsafe ))
92
91
assert isinstance (key , ndb .Key )
93
- assert isinstance (ident , long )
94
92
assert isinstance (kind_string , str )
95
93
96
94
@@ -124,7 +122,7 @@ def test_set_key_directly(testbed):
124
122
125
123
def test_create_entity_with_generated_id (testbed ):
126
124
result = snippets .create_entity_with_generated_id ()
127
- assert isinstance ( result .key .id (), long )
125
+ assert result .key .id () is not None
128
126
129
127
130
128
def test_demonstrate_entities_with_parent_hierarchy (testbed ):
You can’t perform that action at this time.
0 commit comments