Skip to content

Commit 9f6abfa

Browse files
committed
Rename value to label in test_experiment_controlled_keyword.py.
1 parent cc5ae19 commit 9f6abfa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/view_models/test_experiment_controlled_keyword.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66

77
# Test valid experiment controlled keyword
88
def test_create_experiment_controlled_keyword():
9-
new_keyword = KeywordCreate(key="test", value="keyword")
9+
new_keyword = KeywordCreate(key="test", label="keyword")
1010

1111
experiment_controlled_keyword = ExperimentControlledKeywordCreate(
1212
keyword=new_keyword,
1313
)
1414
assert experiment_controlled_keyword.keyword == new_keyword
1515

1616

17-
def test_keyword_with_other_value_and_none_description_fails():
17+
def test_keyword_with_other_label_and_none_description_fails():
1818
other_keyword = KeywordCreate(
1919
key="test",
20-
value="other",
20+
label="other",
2121
)
2222

2323
with pytest.raises(ValueError) as exc_info:
@@ -28,10 +28,10 @@ def test_keyword_with_other_value_and_none_description_fails():
2828
assert "Other option does not allow empty description" in str(exc_info.value)
2929

3030

31-
def test_keyword_with_other_value_and_description_is_created():
31+
def test_keyword_with_other_label_and_description_is_created():
3232
other_keyword = KeywordCreate(
3333
key="test",
34-
value="other",
34+
label="other",
3535
)
3636
description = "keyword is other."
3737

0 commit comments

Comments
 (0)