@@ -78,9 +78,9 @@ def test_rename(schema_simp_pop):
7878 x = B ().proj (i = "id_a" ) & "i in (1,2,3,4)"
7979 lenx = len (x )
8080 assert len (x ) == len (B () & "id_a in (1,2,3,4)" ), "incorrect restriction of renamed attributes"
81- assert len (x & "id_b in (1,2)" ) == len (B () & "id_b in (1,2) and id_a in (1,2,3,4)" ), (
82- "incorrect restriction of renamed restriction "
83- )
81+ assert len (x & "id_b in (1,2)" ) == len (
82+ B () & "id_b in (1,2) and id_a in (1,2,3,4) "
83+ ), "incorrect restriction of renamed restriction"
8484 assert len (x ) == lenx , "restriction modified original"
8585 y = x .proj (j = "i" )
8686 assert len (y ) == len (B () & "id_a in (1,2,3,4)" ), "incorrect projection of restriction"
@@ -184,9 +184,9 @@ def test_rename_non_dj_attribute(connection_test, schema_simp_pop, schema_any_po
184184 schema = prefix + "_test1"
185185 connection_test .query (f"CREATE TABLE { schema } .test_table (oldID int PRIMARY KEY)" ).fetchall ()
186186 mySchema = dj .VirtualModule (schema , schema , connection = connection_test )
187- assert "oldID" not in mySchema . TestTable . proj ( new_name = "oldID" ). heading . attributes . keys (), (
188- "Failed to rename attribute correctly"
189- )
187+ assert (
188+ "oldID" not in mySchema . TestTable . proj ( new_name = "oldID" ). heading . attributes . keys ()
189+ ), "Failed to rename attribute correctly"
190190 connection_test .query (f"DROP TABLE { schema } .test_table" )
191191
192192
0 commit comments