From ad00834e5c3ec8684d81e9d3b3b46bd8444adc75 Mon Sep 17 00:00:00 2001 From: Simon Harrer Date: Thu, 13 Jun 2024 17:27:56 +0200 Subject: [PATCH] Fix --- datacontract/data_contract.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datacontract/data_contract.py b/datacontract/data_contract.py index 8b478e32..c22e8da8 100644 --- a/datacontract/data_contract.py +++ b/datacontract/data_contract.py @@ -209,7 +209,8 @@ def test(self) -> Run: server_name = "examples" server = self._get_examples_server(data_contract, run, tmp_dir) if self._server: - server = data_contract.servers.get(self._server) + server_name = self._server + server = data_contract.servers.get(server_name) else: server_name = list(data_contract.servers.keys())[0] server = data_contract.servers.get(server_name)