Skip to content

Commit

Permalink
Make first marker to have the same color as the others
Browse files Browse the repository at this point in the history
  • Loading branch information
mmouchous-ledger committed Nov 25, 2024
1 parent 25105c3 commit d5ad102
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_lsapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ def test_add_5000_markers_seq():
def test_add_5000_markers_batch_by100():
api = LSAPI()
for _ in range(50):
color = (random(), random(), random(), 0.7)
first = api.marker(
(random(), random(), random(), 0.7), (random() * 100, random() * 100)
color, (random() * 100, random() * 100)
)
positions = [(random() * 100, random() * 100) for _ in range(1, 100)]
color = (random(), random(), random(), 0.7)
markers = api.marker(color, positions)

for i, m in enumerate(markers["markers"]):
Expand All @@ -42,11 +42,11 @@ def test_add_5000_markers_batch_by100():

def test_add_5000_markers_in_one():
api = LSAPI()
color = (random(), random(), random(), 0.7)
first = api.marker(
(random(), random(), random(), 0.7), (random() * 100, random() * 100)
color, (random() * 100, random() * 100)
)
positions = [(random() * 100, random() * 100) for _ in range(1, 5000)]
color = (random(), random(), random(), 0.7)
markers = api.marker(color, positions)

for i, m in enumerate(markers["markers"]):
Expand Down

0 comments on commit d5ad102

Please sign in to comment.