Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed Dec 12, 2024
1 parent 9eb8dc6 commit 1e40399
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ def test_cloud_list_workspaces_cache_invalidate(

# As account changed, the data should be fetched (as we can't due to the patching
# the error is expected).
with pytest.raises(AssertionError) as e:
assert not language_server._cloud_list_workspaces({"refresh": False})(
monitor=NULL
)["success"]
result = language_server._cloud_list_workspaces({"refresh": False})(monitor=NULL)
assert not result["success"]

assert "This should not be called at this time (data should be cached)." in str(e)
assert "This should not be called at this time (data should be cached)." in str(
result["message"]
)
3 changes: 3 additions & 0 deletions sema4ai/tests/sema4ai_code_tests/test_vscode_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -1981,6 +1981,7 @@ def test_list_organizations(


@pytest.mark.timeout(60 * 5)
@pytest.mark.rcc_env
def test_package_build(
language_server_initialized: IRobocorpLanguageServerClient,
cases: CasesFixture,
Expand Down Expand Up @@ -2117,6 +2118,7 @@ def test_package_set_changelog(


@pytest.mark.timeout(60)
@pytest.mark.rcc_env
def test_package_metadata(
language_server_initialized: IRobocorpLanguageServerClient,
cases: CasesFixture,
Expand Down Expand Up @@ -2927,6 +2929,7 @@ def test_import_action_packages(language_server_initialized, tmpdir, datadir) ->
assert os.listdir(Path(created_dir))


@pytest.mark.rcc_env
def test_run_dev_task(
language_server_initialized, cases: CasesFixture, data_regression
) -> None:
Expand Down

0 comments on commit 1e40399

Please sign in to comment.