Skip to content

Commit

Permalink
tests: fix test_value_select
Browse files Browse the repository at this point in the history
  • Loading branch information
MyPyDavid committed Nov 22, 2023
1 parent 5015f3b commit b2ee634
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rdmo/projects/tests/test_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ def test_value_radio(db, mocker):
assert value.option_additional_input is True


def test_value_select(db):
def test_value_select(db, mocker):
value = Value.objects.get(id=5)
assert value.value == ''
assert value.value_and_unit == ''
assert value.option_text == ''
mocker.patch('rdmo.options.models.Option.trans', mocked_trans)
assert value.value == 'One'
assert value.value_and_unit == 'One'
assert value.option_text == 'One'
assert value.option_additional_input is False


Expand Down

0 comments on commit b2ee634

Please sign in to comment.