]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
refactor(tests): rename cursor tests to keep them together
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 11 Sep 2023 22:19:22 +0000 (23:19 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 11 Oct 2023 21:45:38 +0000 (23:45 +0200)
Also rename test_default_cursor to just test_cursor as we renamed the
common tests in the previous commit.

tests/test_cursor.py [moved from tests/test_default_cursor.py with 98% similarity]
tests/test_cursor_async.py [moved from tests/test_default_cursor_async.py with 100% similarity]
tests/test_cursor_client.py [moved from tests/test_client_cursor.py with 98% similarity]
tests/test_cursor_client_async.py [moved from tests/test_client_cursor_async.py with 100% similarity]
tests/test_cursor_raw.py [moved from tests/test_raw_cursor.py with 98% similarity]
tests/test_cursor_raw_async.py [moved from tests/test_raw_cursor_async.py with 100% similarity]
tests/test_cursor_server.py [moved from tests/test_server_cursor.py with 99% similarity]
tests/test_cursor_server_async.py [moved from tests/test_server_cursor_async.py with 100% similarity]
tools/convert_async_to_sync.sh

similarity index 98%
rename from tests/test_default_cursor.py
rename to tests/test_cursor.py
index 9cd230659a8b09c3e41e51d95425c04eb1bd150d..86d2fd7ef1a9783a71e135e7e19b2000777a5c6a 100644 (file)
@@ -1,5 +1,5 @@
 # WARNING: this file is auto-generated by 'async_to_sync.py'
-# from the original file 'test_default_cursor_async.py'
+# from the original file 'test_cursor_async.py'
 # DO NOT CHANGE! Change the original file instead.
 """
 Tests for psycopg.Cursor that are not supposed to pass for subclasses.
similarity index 98%
rename from tests/test_client_cursor.py
rename to tests/test_cursor_client.py
index 5d56b3ebf5e5a2df2bb7d093927de4e3f1bef42d..bac6567ca3a19d9e4ad80bf0c424d3e63abfa6a1 100644 (file)
@@ -1,5 +1,5 @@
 # WARNING: this file is auto-generated by 'async_to_sync.py'
-# from the original file 'test_client_cursor_async.py'
+# from the original file 'test_cursor_client_async.py'
 # DO NOT CHANGE! Change the original file instead.
 import datetime as dt
 
similarity index 98%
rename from tests/test_raw_cursor.py
rename to tests/test_cursor_raw.py
index 887cdc1644f4415be16c29125b2689dd99119d96..683aa6446b40a8725bcb301542737f04f7fe4165 100644 (file)
@@ -1,5 +1,5 @@
 # WARNING: this file is auto-generated by 'async_to_sync.py'
-# from the original file 'test_raw_cursor_async.py'
+# from the original file 'test_cursor_raw_async.py'
 # DO NOT CHANGE! Change the original file instead.
 import pytest
 import psycopg
similarity index 99%
rename from tests/test_server_cursor.py
rename to tests/test_cursor_server.py
index 3a9e4f680e87f914078f9bcd1d49c897893146c7..03dc7af537d18e15938f2f21afad5c608bb9d409 100644 (file)
@@ -1,5 +1,5 @@
 # WARNING: this file is auto-generated by 'async_to_sync.py'
-# from the original file 'test_server_cursor_async.py'
+# from the original file 'test_cursor_server_async.py'
 # DO NOT CHANGE! Change the original file instead.
 import pytest
 
index 82c25d2efb18e23f8acc7bcbb296dd3b5f941055..843fd9be364dc3258b3087db969caded3d11192a 100755 (executable)
@@ -23,15 +23,15 @@ for async in \
     psycopg_pool/psycopg_pool/sched_async.py \
     tests/pool/test_pool_async.py \
     tests/pool/test_sched_async.py \
-    tests/test_client_cursor_async.py \
     tests/test_connection_async.py \
     tests/test_copy_async.py \
+    tests/test_cursor_async.py \
+    tests/test_cursor_client_async.py \
     tests/test_cursor_common_async.py \
-    tests/test_default_cursor_async.py \
+    tests/test_cursor_raw_async.py \
+    tests/test_cursor_server_async.py \
     tests/test_pipeline_async.py \
     tests/test_prepared_async.py \
-    tests/test_raw_cursor_async.py \
-    tests/test_server_cursor_async.py \
     tests/test_tpc_async.py \
     tests/test_transaction_async.py
 do