Skip to content

Commit

Permalink
add enum test, i guess
Browse files Browse the repository at this point in the history
  • Loading branch information
glass-ships committed Sep 18, 2024
1 parent 282783d commit d2db2a9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_enum.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import sys
from pathlib import Path

import pytest

sys.path.append(str(Path(__file__).parents[1]))
from src.config.instruments import Instruments


@pytest.mark.parametrize("instrument", ["fake_instrument", "ref_m"])
def test_enum(instrument):
assert Instruments.has_value(instrument) == (instrument == "ref_m")

0 comments on commit d2db2a9

Please sign in to comment.