diff options
| author | Federico Caselli <cfederico87@gmail.com> | 2022-11-03 20:52:21 +0100 |
|---|---|---|
| committer | Federico Caselli <cfederico87@gmail.com> | 2022-11-16 23:03:04 +0100 |
| commit | 4eb4ceca36c7ce931ea65ac06d6ed08bf459fc66 (patch) | |
| tree | 4970cff3f78489a4a0066cd27fd4bae682402957 /test/ext/declarative | |
| parent | 3fc6c40ea77c971d3067dab0fdf57a5b5313b69b (diff) | |
| download | sqlalchemy-4eb4ceca36c7ce931ea65ac06d6ed08bf459fc66.tar.gz | |
Try running pyupgrade on the code
command run is "pyupgrade --py37-plus --keep-runtime-typing --keep-percent-format <files...>"
pyupgrade will change assert_ to assertTrue. That was reverted since assertTrue does not
exists in sqlalchemy fixtures
Change-Id: Ie1ed2675c7b11d893d78e028aad0d1576baebb55
Diffstat (limited to 'test/ext/declarative')
| -rw-r--r-- | test/ext/declarative/test_inheritance.py | 42 | ||||
| -rw-r--r-- | test/ext/declarative/test_reflection.py | 2 |
2 files changed, 19 insertions, 25 deletions
diff --git a/test/ext/declarative/test_inheritance.py b/test/ext/declarative/test_inheritance.py index 9efe08029..dcfb3f850 100644 --- a/test/ext/declarative/test_inheritance.py +++ b/test/ext/declarative/test_inheritance.py @@ -772,25 +772,21 @@ class ConcreteExtensionConfigTest( [ A( data="a1", - collection=set( - [ - B(data="a1b1", b_data="a1b1"), - C(data="a1b2", c_data="a1c1"), - B(data="a1b2", b_data="a1b2"), - C(data="a1c2", c_data="a1c2"), - ] - ), + collection={ + B(data="a1b1", b_data="a1b1"), + C(data="a1b2", c_data="a1c1"), + B(data="a1b2", b_data="a1b2"), + C(data="a1c2", c_data="a1c2"), + }, ), A( data="a2", - collection=set( - [ - B(data="a2b1", b_data="a2b1"), - C(data="a2c1", c_data="a2c1"), - B(data="a2b2", b_data="a2b2"), - C(data="a2c2", c_data="a2c2"), - ] - ), + collection={ + B(data="a2b1", b_data="a2b1"), + C(data="a2c1", c_data="a2c1"), + B(data="a2b2", b_data="a2b2"), + C(data="a2c2", c_data="a2c2"), + }, ), ] ) @@ -802,14 +798,12 @@ class ConcreteExtensionConfigTest( [ A( data="a2", - collection=set( - [ - B(data="a2b1", b_data="a2b1"), - B(data="a2b2", b_data="a2b2"), - C(data="a2c1", c_data="a2c1"), - C(data="a2c2", c_data="a2c2"), - ] - ), + collection={ + B(data="a2b1", b_data="a2b1"), + B(data="a2b2", b_data="a2b2"), + C(data="a2c1", c_data="a2c1"), + C(data="a2c2", c_data="a2c2"), + }, ) ], ) diff --git a/test/ext/declarative/test_reflection.py b/test/ext/declarative/test_reflection.py index c3e5b586a..e143ad127 100644 --- a/test/ext/declarative/test_reflection.py +++ b/test/ext/declarative/test_reflection.py @@ -36,7 +36,7 @@ class DeclarativeReflectionBase(fixtures.TablesTest): class DeferredReflectBase(DeclarativeReflectionBase): def teardown_test(self): - super(DeferredReflectBase, self).teardown_test() + super().teardown_test() _DeferredMapperConfig._configs.clear() |
