Skip to content

Commit f4aa6c3

Browse files
committed
Remove unecessary numpy dependency in client tests
1 parent 2bcffda commit f4aa6c3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/server/test_client.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from typing import Optional
88

99
import httpx
10-
import numpy as np
1110
import pytest
1211

1312
from optimade.client.cli import _get
@@ -519,9 +518,13 @@ def test_list_properties(
519518

520519

521520
@pytest.mark.parametrize(
522-
"trial_counts", [1, 2] + [int(x) for x in np.logspace(1, 10, 102)]
521+
"trial_counts", [1, 2] + [int(10 ** (9 * (1 + n) / 100)) for n in range(100)]
523522
)
524523
def test_binary_search_internals(trial_counts):
524+
"""Test that the internal binary search algorithm converges to the correct value
525+
across a logspace (including edge cases 1 and 2) up to 10**9.
526+
527+
"""
525528
cli = OptimadeClient(
526529
base_urls=TEST_URLS,
527530
)

0 commit comments

Comments
 (0)