Skip to content

Commit

Permalink
add domain extra kwarg test
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanSoley committed Aug 12, 2024
1 parent cba7811 commit 2076258
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/unit/domain/test_domain.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import pytest

from rubicon_ml.domain.project import Project


@pytest.mark.parametrize(
["domain_cls", "required_kwargs"],
[(Project, {"name": "test_domain_extra_kwargs"})],
)
def test_domain_extra_kwargs(domain_cls, required_kwargs):
domain = domain_cls(extra="extra", **required_kwargs)

assert "extra" not in domain.__dict__

for key, value in required_kwargs.items():
assert getattr(domain, key) == value

0 comments on commit 2076258

Please sign in to comment.