Skip to content

Commit

Permalink
Simplify lambda used in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed May 17, 2024
1 parent c7ac8ca commit b1a973c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_incompatible_versions(self):

def test_duplicated_id_different_tools(self):
schema = self.fake_plugin("plg")
fn = wraps(self.fake_plugin)(lambda *_1, **_2: schema) # Same ID
fn = wraps(self.fake_plugin)(lambda _: schema) # Same ID
plg = [plugins.PluginWrapper(f"plg{i}", fn) for i in range(2)]
with pytest.raises(errors.SchemaWithDuplicatedId):
api.SchemaRegistry(plg)
Expand Down

0 comments on commit b1a973c

Please sign in to comment.