File: test_c_vocab.py

package info (click to toggle)
python-pyomop 4.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 532 kB
  • sloc: python: 1,374; sh: 37; makefile: 26
file content (12 lines) | stat: -rw-r--r-- 320 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12


def test_vocab(pyomop_fixture, capsys):
    from pyomop import CdmVocabulary
    vocab = CdmVocabulary(pyomop_fixture)
    # for x in pyomop_fixture.base:
    #     print(x)
    # setters are called like this
    vocab.concept_id = 45956935 # 'C0020538' Hypertension
    assert(vocab.concept_name == 'xxxx xxxxxxx')