Skip to content

Commit 09475e7

Browse files
committed
fix: change method name
1 parent 9953ddb commit 09475e7

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

diracx-db/src/diracx/db/sql/pilot_agents/db.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99

1010

1111
class PilotAgentsDB(BaseSQLDB):
12+
"""PilotAgentsDB class is a front-end to the PilotAgents Database."""
13+
1214
metadata = PilotAgentsDBBase.metadata
1315

14-
async def addPilotReferences(
16+
async def add_pilot_references(
1517
self,
1618
pilot_ref: list[str],
1719
vo: str,

diracx-db/tests/pilot_agents/test_pilotAgentsDB.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ async def test_insert_and_select(pilot_agents_db: PilotAgentsDB):
2222
stamps = [f"stamp_{i}" for i in range(10)]
2323
stamp_dict = dict(zip(refs, stamps))
2424

25-
await pilot_agents_db.addPilotReferences(
25+
await pilot_agents_db.add_pilot_references(
2626
refs, "test_vo", grid_type="DIRAC", pilot_stamps=stamp_dict
2727
)
2828

29-
await pilot_agents_db.addPilotReferences(
29+
await pilot_agents_db.add_pilot_references(
3030
refs, "test_vo", grid_type="DIRAC", pilot_stamps=None
3131
)

0 commit comments

Comments
 (0)