Skip to content

Commit

Permalink
option test base
Browse files Browse the repository at this point in the history
  • Loading branch information
j042 committed Nov 14, 2023
1 parent e57672f commit 57afb17
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/test_helpers/test_options.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import pytest

import gustaf as gus

def sample_option():
return gus.helpers.options.Option(
"vedo", "color", "color in german is Farbe", (str, tuple, list), "green"
)

def test_option_init():
op = gus.helpers.options.Option("vedo", "a", "abc", (str, int), "efg")
assert "vedo" in op.backends
assert op.key == "a"
assert op.description == "abc"
assert op.allowed_types == set(str, int)
assert op.default == "efg"

def test_option_type_check():
pass

0 comments on commit 57afb17

Please sign in to comment.