Skip to content

Commit 806c18c

Browse files
committed
adding tests
1 parent e92d5c2 commit 806c18c

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright 2025 Iguazio
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
16+
17+
from oai_spo import OaiHub
18+
19+
20+
def test_oai_hub_initialization():
21+
"""Test that OaiHub can be initialized with required parameters."""
22+
oai_hub = OaiHub(
23+
project_name="test-project",
24+
data_dir="./data",
25+
default_env_file="default.env",
26+
local_env_file="local.env",
27+
pipeline_config_path="pipeline_config.yaml",
28+
default_image="mlrun/mlrun",
29+
source="s3://test-bucket",
30+
)
31+
32+
assert oai_hub.project_name == "test-project"
33+
assert oai_hub.data_dir == "./data"
34+
assert oai_hub.project is None
35+

0 commit comments

Comments
 (0)