Skip to content

Commit accbde6

Browse files
committed
Fix configuration tests if server has no preloaded configurations
Fixes the following failures if the server used for the tests contains pre-loaded configurations. FAILED test_tsp.py::TestTspClient::test_fetch_configurations_none - assert [] FAILED test_tsp.py::TestTspClient::test_posted_configuration_deleted - assert [] Signed-off-by: Bernd Hufmann <[email protected]>
1 parent bae43f9 commit accbde6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test_tsp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def test_fetch_configurations_none(self):
422422
"""Expect no configurations without posting any."""
423423
response = self.tsp_client.fetch_configurations(CONFIG_SOURCE_TYPE)
424424
assert response.status_code == 200
425-
assert response.model.configuration_set
425+
assert response.model.configuration_set == []
426426

427427
response = self.tsp_client.fetch_configuration(CONFIG_SOURCE_TYPE, self.name)
428428
assert response.status_code == 404
@@ -461,7 +461,7 @@ def test_posted_configuration_deleted(self, extension):
461461
assert response.status_code == 200
462462

463463
response = self.tsp_client.fetch_configurations(CONFIG_SOURCE_TYPE)
464-
assert response.model.configuration_set
464+
assert response.model.configuration_set == []
465465

466466
def test_put_configuration(self, extension):
467467
"""Expect successful update of configuartion."""

0 commit comments

Comments
 (0)