Skip to content

Commit 3b3598b

Browse files
chore: fix lint failures in spanner samples (#17176)
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/google-cloud-python/issues) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) Fixes #<issue_number_goes_here> 🦕
1 parent 8ebfde9 commit 3b3598b

5 files changed

Lines changed: 3 additions & 4 deletions

File tree

packages/google-cloud-spanner/samples/samples/archived/backup_snippet_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from google.api_core.exceptions import DeadlineExceeded
1919
from test_utils.retry import RetryErrors
2020

21+
2122
def unique_database_id():
2223
"""Creates a unique id for the database."""
2324
return f"test-db-{uuid.uuid4().hex[:10]}"

packages/google-cloud-spanner/samples/samples/autocommit_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
# https://developers.google.com/open-source/licenses/bsd
66

77
from google.api_core.exceptions import Aborted
8-
import pytest
98
from test_utils.retry import RetryErrors
109

1110
import autocommit

packages/google-cloud-spanner/samples/samples/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
(exceptions.ResourceExhausted, exceptions.FailedPrecondition), max_tries=6, delay=15
3434
)
3535

36+
3637
@pytest.fixture(scope="module")
3738
def database_dialect():
3839
"""Database dialect to be used for this sample.

packages/google-cloud-spanner/samples/samples/graph_snippets_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
LABEL Transfers)
8181
"""
8282

83+
8384
@pytest.fixture(scope="module")
8485
def database_dialect():
8586
"""Spanner dialect to be used for this sample.

packages/google-cloud-spanner/samples/samples/quickstart_test.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
15-
import pytest
16-
1714
import quickstart
1815

1916

0 commit comments

Comments
 (0)