#2913: Update reward classes to work with pydantic.

This commit is contained in:
Nick Todd
2024-10-21 17:11:11 +01:00
parent bbcbb26f5e
commit 0cf8e20e6d
2 changed files with 62 additions and 50 deletions

View File

@@ -74,7 +74,7 @@ def test_uc2_rewards(game_and_agent):
ACLAction.PERMIT, src_port=PORT_LOOKUP["POSTGRES_SERVER"], dst_port=PORT_LOOKUP["POSTGRES_SERVER"], position=2
)
comp = GreenAdminDatabaseUnreachablePenalty("client_1")
comp = GreenAdminDatabaseUnreachablePenalty(node_hostname="client_1")
request = ["network", "node", "client_1", "application", "DatabaseClient", "execute"]
response = game.simulation.apply_request(request)