Skip to content

Commit 884619b

Browse files
Michał Sośnickimichalsosn
authored andcommitted
fix: add list_runs to tests
1 parent b5948af commit 884619b

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

tests/integration/neptune2/test_neptune2.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import re
12
from typing import Generator
23
import json
34
import pyarrow as pa
@@ -7,6 +8,16 @@
78
from .data import TEST_DATA
89

910

11+
def test_neptune2_list_runs(api_token, project, test_runs):
12+
exporter = Neptune2Exporter(api_token=api_token)
13+
14+
runs = exporter.list_runs(
15+
project_id=project, runs="|".join(re.escape(run_id) for run_id in test_runs)
16+
)
17+
18+
assert len(runs) == len(test_runs)
19+
20+
1021
def test_neptune2_download_parameters_empty(api_token, project, test_runs):
1122
exporter = Neptune2Exporter(api_token=api_token)
1223

tests/integration/neptune3/test_neptune3.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1+
import re
12
from typing import Generator
23
import pyarrow as pa
34
from neptune_exporter import model
45
from neptune_exporter.exporters.neptune3 import Neptune3Exporter
56
from .data import TEST_DATA
67

78

9+
def test_neptune3_list_runs(api_token, project, test_runs):
10+
exporter = Neptune3Exporter(api_token=api_token)
11+
12+
runs = exporter.list_runs(
13+
project_id=project, runs="|".join(re.escape(run_id) for run_id in test_runs)
14+
)
15+
16+
assert len(runs) == len(test_runs)
17+
18+
819
def test_neptune3_download_parameters_empty(api_token, project, test_runs):
920
exporter = Neptune3Exporter(api_token=api_token)
1021

0 commit comments

Comments
 (0)