Skip to content

fix(tests): disable mock tests #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,21 @@
class TestExecutions:
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])

@pytest.mark.skip()
@parametrize
def test_method_retrieve(self, client: Gitpod) -> None:
execution = client.environments.automations.tasks.executions.retrieve()
assert_matches_type(ExecutionRetrieveResponse, execution, path=["response"])

@pytest.mark.skip()
@parametrize
def test_method_retrieve_with_all_params(self, client: Gitpod) -> None:
execution = client.environments.automations.tasks.executions.retrieve(
id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
assert_matches_type(ExecutionRetrieveResponse, execution, path=["response"])

@pytest.mark.skip()
@parametrize
def test_raw_response_retrieve(self, client: Gitpod) -> None:
response = client.environments.automations.tasks.executions.with_raw_response.retrieve()
Expand All @@ -42,6 +45,7 @@ def test_raw_response_retrieve(self, client: Gitpod) -> None:
execution = response.parse()
assert_matches_type(ExecutionRetrieveResponse, execution, path=["response"])

@pytest.mark.skip()
@parametrize
def test_streaming_response_retrieve(self, client: Gitpod) -> None:
with client.environments.automations.tasks.executions.with_streaming_response.retrieve() as response:
Expand All @@ -53,11 +57,13 @@ def test_streaming_response_retrieve(self, client: Gitpod) -> None:

assert cast(Any, response.is_closed) is True

@pytest.mark.skip()
@parametrize
def test_method_list(self, client: Gitpod) -> None:
execution = client.environments.automations.tasks.executions.list()
assert_matches_type(SyncTaskExecutionsPage[ExecutionListResponse], execution, path=["response"])

@pytest.mark.skip()
@parametrize
def test_method_list_with_all_params(self, client: Gitpod) -> None:
execution = client.environments.automations.tasks.executions.list(
Expand All @@ -76,6 +82,7 @@ def test_method_list_with_all_params(self, client: Gitpod) -> None:
)
assert_matches_type(SyncTaskExecutionsPage[ExecutionListResponse], execution, path=["response"])

@pytest.mark.skip()
@parametrize
def test_raw_response_list(self, client: Gitpod) -> None:
response = client.environments.automations.tasks.executions.with_raw_response.list()
Expand All @@ -85,6 +92,7 @@ def test_raw_response_list(self, client: Gitpod) -> None:
execution = response.parse()
assert_matches_type(SyncTaskExecutionsPage[ExecutionListResponse], execution, path=["response"])

@pytest.mark.skip()
@parametrize
def test_streaming_response_list(self, client: Gitpod) -> None:
with client.environments.automations.tasks.executions.with_streaming_response.list() as response:
Expand All @@ -96,18 +104,21 @@ def test_streaming_response_list(self, client: Gitpod) -> None:

assert cast(Any, response.is_closed) is True

@pytest.mark.skip()
@parametrize
def test_method_stop(self, client: Gitpod) -> None:
execution = client.environments.automations.tasks.executions.stop()
assert_matches_type(object, execution, path=["response"])

@pytest.mark.skip()
@parametrize
def test_method_stop_with_all_params(self, client: Gitpod) -> None:
execution = client.environments.automations.tasks.executions.stop(
id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
assert_matches_type(object, execution, path=["response"])

@pytest.mark.skip()
@parametrize
def test_raw_response_stop(self, client: Gitpod) -> None:
response = client.environments.automations.tasks.executions.with_raw_response.stop()
Expand All @@ -117,6 +128,7 @@ def test_raw_response_stop(self, client: Gitpod) -> None:
execution = response.parse()
assert_matches_type(object, execution, path=["response"])

@pytest.mark.skip()
@parametrize
def test_streaming_response_stop(self, client: Gitpod) -> None:
with client.environments.automations.tasks.executions.with_streaming_response.stop() as response:
Expand All @@ -132,18 +144,21 @@ def test_streaming_response_stop(self, client: Gitpod) -> None:
class TestAsyncExecutions:
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])

@pytest.mark.skip()
@parametrize
async def test_method_retrieve(self, async_client: AsyncGitpod) -> None:
execution = await async_client.environments.automations.tasks.executions.retrieve()
assert_matches_type(ExecutionRetrieveResponse, execution, path=["response"])

@pytest.mark.skip()
@parametrize
async def test_method_retrieve_with_all_params(self, async_client: AsyncGitpod) -> None:
execution = await async_client.environments.automations.tasks.executions.retrieve(
id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
assert_matches_type(ExecutionRetrieveResponse, execution, path=["response"])

@pytest.mark.skip()
@parametrize
async def test_raw_response_retrieve(self, async_client: AsyncGitpod) -> None:
response = await async_client.environments.automations.tasks.executions.with_raw_response.retrieve()
Expand All @@ -153,6 +168,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncGitpod) -> None:
execution = await response.parse()
assert_matches_type(ExecutionRetrieveResponse, execution, path=["response"])

@pytest.mark.skip()
@parametrize
async def test_streaming_response_retrieve(self, async_client: AsyncGitpod) -> None:
async with (
Expand All @@ -166,11 +182,13 @@ async def test_streaming_response_retrieve(self, async_client: AsyncGitpod) -> N

assert cast(Any, response.is_closed) is True

@pytest.mark.skip()
@parametrize
async def test_method_list(self, async_client: AsyncGitpod) -> None:
execution = await async_client.environments.automations.tasks.executions.list()
assert_matches_type(AsyncTaskExecutionsPage[ExecutionListResponse], execution, path=["response"])

@pytest.mark.skip()
@parametrize
async def test_method_list_with_all_params(self, async_client: AsyncGitpod) -> None:
execution = await async_client.environments.automations.tasks.executions.list(
Expand All @@ -189,6 +207,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncGitpod) -> N
)
assert_matches_type(AsyncTaskExecutionsPage[ExecutionListResponse], execution, path=["response"])

@pytest.mark.skip()
@parametrize
async def test_raw_response_list(self, async_client: AsyncGitpod) -> None:
response = await async_client.environments.automations.tasks.executions.with_raw_response.list()
Expand All @@ -198,6 +217,7 @@ async def test_raw_response_list(self, async_client: AsyncGitpod) -> None:
execution = await response.parse()
assert_matches_type(AsyncTaskExecutionsPage[ExecutionListResponse], execution, path=["response"])

@pytest.mark.skip()
@parametrize
async def test_streaming_response_list(self, async_client: AsyncGitpod) -> None:
async with async_client.environments.automations.tasks.executions.with_streaming_response.list() as response:
Expand All @@ -209,18 +229,21 @@ async def test_streaming_response_list(self, async_client: AsyncGitpod) -> None:

assert cast(Any, response.is_closed) is True

@pytest.mark.skip()
@parametrize
async def test_method_stop(self, async_client: AsyncGitpod) -> None:
execution = await async_client.environments.automations.tasks.executions.stop()
assert_matches_type(object, execution, path=["response"])

@pytest.mark.skip()
@parametrize
async def test_method_stop_with_all_params(self, async_client: AsyncGitpod) -> None:
execution = await async_client.environments.automations.tasks.executions.stop(
id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
assert_matches_type(object, execution, path=["response"])

@pytest.mark.skip()
@parametrize
async def test_raw_response_stop(self, async_client: AsyncGitpod) -> None:
response = await async_client.environments.automations.tasks.executions.with_raw_response.stop()
Expand All @@ -230,6 +253,7 @@ async def test_raw_response_stop(self, async_client: AsyncGitpod) -> None:
execution = await response.parse()
assert_matches_type(object, execution, path=["response"])

@pytest.mark.skip()
@parametrize
async def test_streaming_response_stop(self, async_client: AsyncGitpod) -> None:
async with async_client.environments.automations.tasks.executions.with_streaming_response.stop() as response:
Expand Down
Loading