diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2026-01-18 21:26:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-18 21:26:56 +0100 |
| commit | 6cff02078799b7c683a0d39630d49ab4fe532e7c (patch) | |
| tree | 9813fc94d952942117b23d61231b9e89a8cab1c2 /tests/backends | |
| parent | 0d31ca98830542088299d2078402891d08cc3a65 (diff) | |
Applied Black's 2026 stable style.
https://github.com/psf/black/releases/tag/26.1.0
Diffstat (limited to 'tests/backends')
| -rw-r--r-- | tests/backends/mysql/test_introspection.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/backends/mysql/test_introspection.py b/tests/backends/mysql/test_introspection.py index a2e2938451..55272989d2 100644 --- a/tests/backends/mysql/test_introspection.py +++ b/tests/backends/mysql/test_introspection.py @@ -81,19 +81,16 @@ class TestCrossDatabaseRelations(TestCase): rel_column_quoted = other_connection.ops.quote_name(rel_column) try: with other_connection.cursor() as other_cursor: - other_cursor.execute( - f""" + other_cursor.execute(f""" CREATE TABLE {rel_table_quoted} ( id integer AUTO_INCREMENT, PRIMARY KEY (id) ) - """ - ) + """) with default_connection.cursor() as default_cursor: # Create table in the default schema with a cross-database # relation. - default_cursor.execute( - f""" + default_cursor.execute(f""" CREATE TABLE {main_table_quoted} ( id integer AUTO_INCREMENT, {rel_column_quoted} integer NOT NULL, @@ -101,8 +98,7 @@ class TestCrossDatabaseRelations(TestCase): FOREIGN KEY ({rel_column_quoted}) REFERENCES {other_schema_quoted}.{rel_table_quoted}(id) ) - """ - ) + """) relations = default_connection.introspection.get_relations( default_cursor, main_table ) |
