This repository was archived by the owner on Mar 13, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Copyright 2025 Google LLC All rights reserved.
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+ from sqlalchemy import String , BigInteger
16+ from sqlalchemy .orm import DeclarativeBase
17+ from sqlalchemy .orm import Mapped
18+ from sqlalchemy .orm import mapped_column
19+
20+
21+ class Base (DeclarativeBase ):
22+ pass
23+
24+
25+ class Singer (Base ):
26+ __tablename__ = "singers"
27+ id : Mapped [int ] = mapped_column (BigInteger , primary_key = True )
28+ name : Mapped [str ] = mapped_column (String )
Original file line number Diff line number Diff line change 3333
3434class TestStaleReads (MockServerTestBase ):
3535 def test_request_tag (self ):
36- from test .mockserver_tests .stale_read_model import Singer
36+ from test .mockserver_tests .tags_model import Singer
3737
3838 add_singer_query_result ("SELECT singers.id, singers.name \n " + "FROM singers" )
3939 engine = create_engine (
@@ -62,7 +62,7 @@ def test_request_tag(self):
6262 eq_ ("my-tag-2" , requests [3 ].request_options .request_tag )
6363
6464 def test_transaction_tag (self ):
65- from test .mockserver_tests .stale_read_model import Singer
65+ from test .mockserver_tests .tags_model import Singer
6666
6767 add_singer_query_result ("SELECT singers.id, singers.name\n " + "FROM singers" )
6868 add_update_count ("INSERT INTO singers (id, name) VALUES (@a0, @a1)" , 1 )
You can’t perform that action at this time.
0 commit comments