]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Dropped now redundant copy test
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 15 Nov 2020 13:17:31 +0000 (13:17 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 15 Nov 2020 13:17:31 +0000 (13:17 +0000)
tests/test_copy.py

index 49caca46a8cfbc28e3c05aaf807431f028efa784..6596d71ac8847e9fb6b7f82120ee011556d7c6a9 100644 (file)
@@ -111,20 +111,6 @@ def test_copy_bad_result(conn):
             pass
 
 
-@pytest.mark.parametrize(
-    "format, buffer",
-    [(Format.TEXT, "sample_text"), (Format.BINARY, "sample_binary")],
-)
-def test_copy_in_buffers_with(conn, format, buffer):
-    cur = conn.cursor()
-    ensure_table(cur, sample_tabledef)
-    with cur.copy(f"copy copy_in from stdin (format {format.name})") as copy:
-        copy.write(globals()[buffer])
-
-    data = cur.execute("select * from copy_in order by 1").fetchall()
-    assert data == sample_records
-
-
 def test_copy_in_str(conn):
     cur = conn.cursor()
     ensure_table(cur, sample_tabledef)