Skip to content

Commit

Permalink
Closes Bears-R-Us#3705: Add annotations to skip tests based on rank. (B…
Browse files Browse the repository at this point in the history
…ears-R-Us#3706)

Co-authored-by: Amanda Potts <ajpotts@users.noreply.github.com>
Co-authored-by: drculhane <drculhane@users.noreply.github.com>
  • Loading branch information
3 people committed Aug 28, 2024
1 parent d47c76d commit 844ad2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/client_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

import arkouda as ak
from arkouda.client import generic_msg
from arkouda.client import generic_msg, get_max_array_rank
from server_util.test.server_test_util import TestRunningMode, start_arkouda_server


Expand Down Expand Up @@ -156,6 +156,7 @@ def test_client_get_server_commands(self):
for cmd in ["connect", "info", "str"]:
assert cmd in cmds

@pytest.mark.skip_if_max_rank_greater_than(9)
def test_client_array_dim_cmd_error(self):
"""
Tests that a user will get a helpful error message if they attempt to
Expand Down
1 change: 1 addition & 0 deletions tests/numeric_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ def test_histogram(self, num_type):
host = subprocess.check_output("hostname").decode("utf-8").strip()

@pytest.mark.skipif(host == "horizon", reason="Fails on horizon")
@pytest.mark.skip_if_max_rank_less_than(2)
def test_histogram_multidim(self):
# test 2d histogram
seed = 1
Expand Down

0 comments on commit 844ad2f

Please sign in to comment.