From 63e6671f7ffdd57ce57d5c4ea0f515d7ee602f1f Mon Sep 17 00:00:00 2001 From: richard-dds Date: Wed, 4 Sep 2019 10:46:13 -0400 Subject: [PATCH] Add test for mock CSP (probably temporary) --- tests/domain/test_mock_csp.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/domain/test_mock_csp.py diff --git a/tests/domain/test_mock_csp.py b/tests/domain/test_mock_csp.py new file mode 100644 index 00000000..52bb461a --- /dev/null +++ b/tests/domain/test_mock_csp.py @@ -0,0 +1,13 @@ +import pytest + +from atst.domain.csp import MockCloudProvider + + +@pytest.fixture +def mock_csp(): + return MockCloudProvider(with_delay=False, with_failure=False) + + +def test_create_environment(mock_csp: MockCloudProvider): + environment_id = mock_csp.create_environment({}, {}, {}) + assert isinstance(environment_id, str)