Uh oh!
There was an error while loading. Please reload this page.
Add system test for Database convenience methods: - #3385
Conversation
| self.assertEqual(len(temp_db.ddl_statements), len(DDL_STATEMENTS)) | ||
| def test_db_batch_insert_then_db_snapshot_read_and_db_read(self): | ||
| from google.cloud.spanner import KeySet |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| def test_db_batch_insert_then_db_snapshot_read_and_db_read(self): | ||
| from google.cloud.spanner import KeySet | ||
| keyset = KeySet(all_=True) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| retry(self._db.reload)() | ||
| with self._db.batch() as batch: | ||
| batch.delete(self.TABLE, keyset) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| batch.insert(self.TABLE, self.COLUMNS, self.ROW_DATA) | ||
| with self._db.snapshot(read_timestamp=batch.committed) as snapshot: | ||
| from_snap = list(snapshot.read( self.TABLE, self.COLUMNS, keyset)) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| with self._db.batch() as batch: | ||
| batch.delete(self.TABLE, keyset) | ||
| def _unit_of_work(transaction, test): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
tseaver
commented
May 8, 2017
Should I follow suit and push the updated branch to the origin to get a build with system tests? We could close this PR and re-open there. |
- batch - snapshot - read - run_with_transaction - execute_sql Closes#3015.
dhermes
commented
May 8, 2017
@tseaver Yes I think you should push this branch to the GCP origin to get system tests running. You don't need to close this PR though, the tests will "just work" (i.e. be associated here). |
tseaver
commented
May 8, 2017
Pushed to |
tseaver
commented
May 9, 2017
@dhermes New system tests pass on CI. Any further issues? |
dhermes
commented
May 9, 2017
LGTM |
…on-docs-samples#3385) * video: use flaky on flaky timeouts * Update beta_snippets_test.py * remove api result check * Update beta_snippets_test.py
batchsnapshotreadrun_with_transactionexecute_sqlCloses#3015.