@@ -20,7 +20,7 @@ def test_resolve_by_id(self):
2020 obj = MagicMock ()
2121 self .domain .objects ['foo' , 'id1' ] = ('doc1' , 'anchor1' , obj )
2222
23- pending = PendingObject (domain_name = 'obj' , objtype = 'foo' , objid = 'id1' )
23+ pending = PendingObject (domain = 'obj' , objtype = 'foo' , objid = 'id1' )
2424 result = pending .resolve (self .env )
2525
2626 self .assertIs (result , obj )
@@ -30,7 +30,7 @@ def test_resolve_by_reference(self):
3030 self .domain .objects ['foo' , 'id1' ] = ('doc1' , 'anchor1' , obj )
3131 self .domain .references ['foo' , 'field1' , 'ref1' ] = {'id1' }
3232
33- pending = PendingObject (domain_name = 'obj' , objtype = 'foo' , objid = 'ref1' )
33+ pending = PendingObject (domain = 'obj' , objtype = 'foo' , objid = 'ref1' )
3434 result = pending .resolve (self .env )
3535
3636 self .assertIs (result , obj )
@@ -39,7 +39,7 @@ def test_resolve_not_found(self):
3939 self .domain .objects ['foo' , 'id1' ] = ('doc1' , 'anchor1' , MagicMock ())
4040 self .domain .references ['foo' , 'field1' , 'ref1' ] = {'id1' }
4141
42- pending = PendingObject (domain_name = 'obj' , objtype = 'foo' , objid = 'nonexistent' )
42+ pending = PendingObject (domain = 'obj' , objtype = 'foo' , objid = 'nonexistent' )
4343
4444 with self .assertRaises (KeyError ):
4545 pending .resolve (self .env )
@@ -51,7 +51,7 @@ def test_resolve_multiple_references(self):
5151 self .domain .objects ['foo' , 'id2' ] = ('doc2' , 'anchor2' , obj2 )
5252 self .domain .references ['foo' , 'field1' , 'ref1' ] = {'id1' , 'id2' }
5353
54- pending = PendingObject (domain_name = 'obj' , objtype = 'foo' , objid = 'ref1' )
54+ pending = PendingObject (domain = 'obj' , objtype = 'foo' , objid = 'ref1' )
5555 result = pending .resolve (self .env )
5656
5757 self .assertIn (result , [obj1 , obj2 ])
0 commit comments