Skip to content

Commit 7f6d81e

Browse files
authored
chore: migrate to owl bot (#184)
1 parent 491d41d commit 7f6d81e

File tree

5 files changed

+27
-84
lines changed

5 files changed

+27
-84
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
docker:
2+
digest: sha256:c66ba3c8d7bc8566f47df841f98cd0097b28fff0b1864c86f5817f4c8c3e8600
3+
image: gcr.io/repo-automation-bots/owlbot-python:latest
4+

.github/.OwlBot.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
docker:
16+
image: gcr.io/repo-automation-bots/owlbot-python:latest
17+
18+
begin-after-commit-hash: be22498ce258bf2d5fe12fd696d3ad9a2b6c430e
19+

synth.py renamed to owlbot.py

File renamed without changes.

synth.metadata

Lines changed: 0 additions & 83 deletions
This file was deleted.

tests/sqlalchemy_dialect_compliance/test_dialect_compliance.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,11 @@ def test_literal(self, literal_round_trip):
114114
# The base tests doesn't set up the literal properly, because
115115
# it doesn't pass its datatype to `literal`.
116116

117-
def literal(value):
117+
def literal(value, type_=None):
118118
assert value == self.data
119+
if type_ is not None:
120+
assert type_ is self.datatype
121+
119122
import sqlalchemy.sql.sqltypes
120123

121124
return sqlalchemy.sql.elements.literal(value, self.datatype)

0 commit comments

Comments
 (0)