diff options
| author | Max Nanis | 2026-03-06 16:49:46 -0500 |
|---|---|---|
| committer | Max Nanis | 2026-03-06 16:49:46 -0500 |
| commit | 91d040211a4ed6e4157896256a762d3854777b5e (patch) | |
| tree | cd95922ea4257dc8d3f4e4cbe8534474709a20dc /tests/managers/test_lucid.py | |
| download | generalresearch-91d040211a4ed6e4157896256a762d3854777b5e.tar.gz generalresearch-91d040211a4ed6e4157896256a762d3854777b5e.zip | |
Initial commitv3.3.4
Diffstat (limited to 'tests/managers/test_lucid.py')
| -rw-r--r-- | tests/managers/test_lucid.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/managers/test_lucid.py b/tests/managers/test_lucid.py new file mode 100644 index 0000000..1a1bae7 --- /dev/null +++ b/tests/managers/test_lucid.py @@ -0,0 +1,23 @@ +import pytest + +from generalresearch.managers.lucid.profiling import get_profiling_library + +qids = ["42", "43", "45", "97", "120", "639", "15297"] + + +class TestLucidProfiling: + + @pytest.mark.skip + def test_get_library(self, thl_web_rr): + pks = [(qid, "us", "eng") for qid in qids] + qs = get_profiling_library(thl_web_rr, pks=pks) + assert len(qids) == len(qs) + + # just making sure this doesn't raise errors + for q in qs: + q.to_upk_question() + + # a lot will fail parsing because they have no options or the options are blank + # just asserting that we get some back + qs = get_profiling_library(thl_web_rr, country_iso="mx", language_iso="spa") + assert len(qs) > 100 |
