From 15a7871cafed22bc534e17439ac045cf75400275 Mon Sep 17 00:00:00 2001 From: Simon Harrer Date: Thu, 13 Jun 2024 17:13:05 +0200 Subject: [PATCH] Fix issue that one always runs the first server, not taking into account the passed server --- datacontract/data_contract.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/datacontract/data_contract.py b/datacontract/data_contract.py index 491fb5ee..8b478e32 100644 --- a/datacontract/data_contract.py +++ b/datacontract/data_contract.py @@ -208,6 +208,8 @@ def test(self) -> Run: if self._examples: server_name = "examples" server = self._get_examples_server(data_contract, run, tmp_dir) + if self._server: + server = data_contract.servers.get(self._server) else: server_name = list(data_contract.servers.keys())[0] server = data_contract.servers.get(server_name)